Merge branch 'dev' into dual_demosaic_auto_threshold

This commit is contained in:
heckflosse
2018-10-21 21:54:24 +02:00
177 changed files with 1886 additions and 1041 deletions

View File

@@ -292,6 +292,7 @@ void ParamsEdited::set(bool v)
sh.shadows = v;
sh.stonalwidth = v;
sh.radius = v;
sh.lab = v;
crop.enabled = v;
crop.x = v;
crop.y = v;
@@ -853,6 +854,7 @@ void ParamsEdited::initFrom(const std::vector<rtengine::procparams::ProcParams>&
sh.shadows = sh.shadows && p.sh.shadows == other.sh.shadows;
sh.stonalwidth = sh.stonalwidth && p.sh.stonalwidth == other.sh.stonalwidth;
sh.radius = sh.radius && p.sh.radius == other.sh.radius;
sh.lab = sh.lab && p.sh.lab == other.sh.lab;
crop.enabled = crop.enabled && p.crop.enabled == other.crop.enabled;
crop.x = crop.x && p.crop.x == other.crop.x;
crop.y = crop.y && p.crop.y == other.crop.y;
@@ -2120,6 +2122,10 @@ void ParamsEdited::combine(rtengine::procparams::ProcParams& toEdit, const rteng
toEdit.sh.radius = mods.sh.radius;
}
if (sh.lab) {
toEdit.sh.lab = mods.sh.lab;
}
if (crop.enabled) {
toEdit.crop.enabled = mods.crop.enabled;
}