Fattal: added anchor parameter

This commit is contained in:
Alberto Griggio
2018-01-25 22:13:17 +01:00
parent 83bc6140bd
commit 8a510315c2
12 changed files with 54 additions and 17 deletions

View File

@@ -280,6 +280,7 @@ void ParamsEdited::set (bool v)
fattal.enabled = v;
fattal.threshold = v;
fattal.amount = v;
fattal.anchor = v;
sh.enabled = v;
sh.hq = v;
sh.highlights = v;
@@ -841,6 +842,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
fattal.enabled = fattal.enabled && p.fattal.enabled == other.fattal.enabled;
fattal.threshold = fattal.threshold && p.fattal.threshold == other.fattal.threshold;
fattal.amount = fattal.amount && p.fattal.amount == other.fattal.amount;
fattal.anchor = fattal.anchor && p.fattal.anchor == other.fattal.anchor;
sh.enabled = sh.enabled && p.sh.enabled == other.sh.enabled;
sh.hq = sh.hq && p.sh.hq == other.sh.hq;
@@ -2067,6 +2069,9 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
if (fattal.amount) {
toEdit.fattal.amount = mods.fattal.amount;
}
if (fattal.anchor) {
toEdit.fattal.anchor = mods.fattal.anchor;
}
if (sh.enabled) {
toEdit.sh.enabled = mods.sh.enabled;