Haze removal: backwards compatibility for blend mode, #5972

This commit is contained in:
Ingo Weyrich
2020-10-29 14:47:43 +01:00
parent 31a9cf3fe0
commit 5bababe46f
2 changed files with 12 additions and 2 deletions

View File

@@ -8324,7 +8324,15 @@ int ProcParams::load(const Glib::ustring& fname, ParamsEdited* pedited)
assignFromKeyfile(keyFile, "Dehaze", "Strength", pedited, dehaze.strength, pedited->dehaze.strength);
assignFromKeyfile(keyFile, "Dehaze", "ShowDepthMap", pedited, dehaze.showDepthMap, pedited->dehaze.showDepthMap);
assignFromKeyfile(keyFile, "Dehaze", "Depth", pedited, dehaze.depth, pedited->dehaze.depth);
assignFromKeyfile(keyFile, "Dehaze", "Saturation", pedited, dehaze.saturation, pedited->dehaze.saturation);
if (ppVersion < 349 && dehaze.enabled && keyFile.has_key("Dehaze", "Luminance")) {
const bool luminance = keyFile.get_boolean("Dehaze", "Luminance");
dehaze.saturation = luminance ? 0 : 100;
if (pedited) {
pedited->dehaze.saturation = true;
}
} else {
assignFromKeyfile(keyFile, "Dehaze", "Saturation", pedited, dehaze.saturation, pedited->dehaze.saturation);
}
}
if (keyFile.has_group("Film Simulation")) {