Diffusion Krita 1eb4d1464152

Replace cache with a new variable in curve option

Authored by tymond on Aug 20 2019, 8:24 PM.

Description

Replace cache with a new variable in curve option

Before this commit, "Use the same curve" (precisely,
"Share curve across all settings") was done using
(1) rewriting values in sensors to the selected curve
(2) cached curves for all the sensors in case the user changes
their mind and wants the previous ones.

This behaviour brings confusion and is hard to debug, hence
the change.

This commit adds a new separate variable that keeps the
"common curve", so all sensors has their own curves.
There is no need for caching or restoring, it just needs
to be clear that when the Use The Same Curve checkbox is
checked, the value from the common curve needs to be taken
instead of the curve from the sensor in question.

Details

Committed
tymondSep 14 2019, 3:25 PM
Parents
R37:26d44c9842ae: Fix presets with random offset of texture marked dirty
Branches
Unknown
Tags
Unknown