From f06f5e8d32771a2e672a9f0234e22fca094b8b74 Mon Sep 17 00:00:00 2001 From: Vincenzo Sicurella Date: Thu, 1 Aug 2024 21:36:34 -0400 Subject: [PATCH] fix logic for LumatoneState property changes --- Source/lumatone_editor_library/data/lumatone_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/lumatone_editor_library/data/lumatone_state.cpp b/Source/lumatone_editor_library/data/lumatone_state.cpp index 0db5128..0ade9ac 100644 --- a/Source/lumatone_editor_library/data/lumatone_state.cpp +++ b/Source/lumatone_editor_library/data/lumatone_state.cpp @@ -88,8 +88,8 @@ juce::ValueTree LumatoneState::loadStateProperties(juce::ValueTree stateIn) void LumatoneState::handleStatePropertyChange(juce::ValueTree stateIn, const juce::Identifier& property) { - // Ignore any changes from parents - if (stateIn != state || !stateIn.isAChildOf(state)) + // Only acknowledge changes to this node + if (stateIn != state) return; if (property == LumatoneStateProperty::LastConnectedSerialNumber)