Issue 1615: added graduated filter tool
This commit is contained in:
@@ -190,6 +190,12 @@ void ParamsEdited::set (bool v) {
|
||||
lensProf.useCA = v;
|
||||
perspective.horizontal = v;
|
||||
perspective.vertical = v;
|
||||
gradient.enabled = v;
|
||||
gradient.degree = v;
|
||||
gradient.feather = v;
|
||||
gradient.strength = v;
|
||||
gradient.centerX = v;
|
||||
gradient.centerY = v;
|
||||
cacorrection.red = v;
|
||||
cacorrection.blue = v;
|
||||
vignetting.amount = v;
|
||||
@@ -438,6 +444,12 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
lensProf.useCA = lensProf.useCA && p.lensProf.useCA == other.lensProf.useCA;
|
||||
perspective.horizontal = perspective.horizontal && p.perspective.horizontal == other.perspective.horizontal;
|
||||
perspective.vertical = perspective.vertical && p.perspective.vertical == other.perspective.vertical;
|
||||
gradient.enabled = gradient.enabled && p.gradient.enabled == other.gradient.enabled;
|
||||
gradient.degree = gradient.degree && p.gradient.degree == other.gradient.degree;
|
||||
gradient.feather = gradient.feather && p.gradient.feather == other.gradient.feather;
|
||||
gradient.strength = gradient.strength && p.gradient.strength == other.gradient.strength;
|
||||
gradient.centerX = gradient.centerX && p.gradient.centerX == other.gradient.centerX;
|
||||
gradient.centerY = gradient.centerY && p.gradient.centerY == other.gradient.centerY;
|
||||
cacorrection.red = cacorrection.red && p.cacorrection.red == other.cacorrection.red;
|
||||
cacorrection.blue = cacorrection.blue && p.cacorrection.blue == other.cacorrection.blue;
|
||||
vignetting.amount = vignetting.amount && p.vignetting.amount == other.vignetting.amount;
|
||||
@@ -693,6 +705,12 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
|
||||
if (perspective.horizontal) toEdit.perspective.horizontal = dontforceSet && options.baBehav[ADDSET_PERSPECTIVE] ? toEdit.perspective.horizontal + mods.perspective.horizontal : mods.perspective.horizontal;
|
||||
if (perspective.vertical) toEdit.perspective.vertical = dontforceSet && options.baBehav[ADDSET_PERSPECTIVE] ? toEdit.perspective.vertical + mods.perspective.vertical : mods.perspective.vertical;
|
||||
if (gradient.enabled) toEdit.gradient.enabled = mods.gradient.enabled;
|
||||
if (gradient.degree) toEdit.gradient.degree = dontforceSet && options.baBehav[ADDSET_GRADIENT_DEGREE] ? toEdit.gradient.degree + mods.gradient.degree : mods.gradient.degree;
|
||||
if (gradient.feather) toEdit.gradient.feather = mods.gradient.feather;
|
||||
if (gradient.strength) toEdit.gradient.strength = mods.gradient.strength;
|
||||
if (gradient.centerX) toEdit.gradient.centerX = mods.gradient.centerX;
|
||||
if (gradient.centerY) toEdit.gradient.centerY = mods.gradient.centerY;
|
||||
if (cacorrection.red) toEdit.cacorrection.red = dontforceSet && options.baBehav[ADDSET_CA] ? toEdit.cacorrection.red + mods.cacorrection.red : mods.cacorrection.red;
|
||||
if (cacorrection.blue) toEdit.cacorrection.blue = dontforceSet && options.baBehav[ADDSET_CA] ? toEdit.cacorrection.blue + mods.cacorrection.blue : mods.cacorrection.blue;
|
||||
if (vignetting.amount) toEdit.vignetting.amount = dontforceSet && options.baBehav[ADDSET_VIGN_AMOUNT] ? toEdit.vignetting.amount + mods.vignetting.amount : mods.vignetting.amount;
|
||||
|
Reference in New Issue
Block a user