Changed the "Same in all tools" behavior (fix #4007)

Now:
1) If some dynamics are set and the "Same on all tools" box is
unchecked, when we check it, aseprite will copy the active
configuration as shared values.
2) If "Same on all tools" is checked, and we uncheck it, aseprite
will copy shared values to the active tool settings (without touching
other tools), in this way the visible options of the active tool
won't be modified.
This commit is contained in:
Gaspar Capello 2023-09-18 13:05:08 -03:00 committed by David Capello
parent 5968440f90
commit 60233ba144

View File

@ -289,9 +289,6 @@ DynamicsPopup::DynamicsPopup(Delegate* delegate)
// Save the old dynamics options:
saveDynamicsPref(!sameInAllTools);
Preferences::instance().shared.shareDynamics(sameInAllTools);
// Load the new dynamics options:
loadDynamicsPref(sameInAllTools);
refreshVisibility();
});
m_dynamics->gradientPlaceholder()->addChild(m_ditheringSel);
m_dynamics->pressurePlaceholder()->addChild(m_pressureThreshold = new ThresholdSlider);