commit 14b0ef242dca364b06637b14784146ba542426dc
parent 103afa598b49b5fe0260c7287f11d6b77c46b502
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Wed, 28 Aug 2024 00:35:33 +0200
fix missing component parameter property changes when re-binding a component to a different parameter caused tooltips to display values for previously bound parameters
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/doc/changelog.txt b/doc/changelog.txt
@@ -19,6 +19,8 @@ NodalRed2x:
- [Fix] Performances saved via "Store" button couldn't be loaded
- [Fix] Crash when storing a performance via "Store" button while slot A is selected
- [Fix] Patches with a different device ID failed to load
+- [Fix] Parameter tooltips for VM map parameters displayed values for the non-VM
+ versions when hovering
Xenia:
diff --git a/source/jucePluginLib/parameterbinding.cpp b/source/jucePluginLib/parameterbinding.cpp
@@ -352,6 +352,9 @@ namespace pluginLib
{
m_bindings.emplace_back(_boundParameter);
+ _boundParameter.component->getProperties().set("parameter", static_cast<int>(_boundParameter.paramIndex));
+ _boundParameter.component->getProperties().set("part", _boundParameter.part);
+
m_boundComponents.erase(_boundParameter.component);
m_boundParameters.erase(_boundParameter.parameter);