commit abedd1a079b2257093883290a4da482aece56e60 parent 362e12a8abb3e35b31356596934339e9a841d8a2 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sat, 8 Jun 2024 02:21:01 +0200 do not apply link sources to targets when the change is due to a preset load Diffstat:
M | source/jucePluginLib/parameterlink.cpp | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/source/jucePluginLib/parameterlink.cpp b/source/jucePluginLib/parameterlink.cpp @@ -58,6 +58,10 @@ namespace pluginLib m_sourceValue = newSourceValue; + // do not apply to linked parameters if the change is caused by a preset load + if(m_source->getChangeOrigin() == Parameter::Origin::PresetChange) + return; + const auto origin = m_source->getChangeOrigin(); for (auto* p : m_targets)