mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-31 21:48:53 -06:00
Tighten the change after a final review
This commit is contained in:
@@ -161,9 +161,7 @@ impl DevelopSettings {
|
||||
// the creative profile is not a control: the chosen look goes back to the default one,
|
||||
// and so does the camera's own local tone mapping
|
||||
Section::Profile => {
|
||||
let d = Profile::default();
|
||||
self.profile.id = d.id;
|
||||
self.profile.camera_local_tone = d.camera_local_tone;
|
||||
self.profile = Profile::default();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
@@ -331,7 +329,7 @@ mod tests {
|
||||
s.profile.id = "lc.muted.matte-soft".into();
|
||||
s.profile.amount = 40.0;
|
||||
s.reset_section(Section::Profile);
|
||||
assert_eq!(s.profile.id, "lc.color", "the creative profile survives a Profile reset");
|
||||
assert_eq!(s.profile.id, "lc.color", "the creative profile is reset to the default one");
|
||||
assert_eq!(s.profile.amount, 100.0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user