From 787f388a268050c24b30fe8dd01ff0927368eb43 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 3 Feb 2021 15:25:33 +0100 Subject: [PATCH] Invalidate the controls after changes --- editor/src/editor/GUIComponents.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/src/editor/GUIComponents.cpp b/editor/src/editor/GUIComponents.cpp index 3f126dcb..5051e952 100644 --- a/editor/src/editor/GUIComponents.cpp +++ b/editor/src/editor/GUIComponents.cpp @@ -606,6 +606,7 @@ void SControlsPanel::setControlValue(uint32_t index, float value) return; slot->knob->setValue(value); + slot->knob->invalid(); } void SControlsPanel::setControlDefaultValue(uint32_t index, float value) @@ -633,6 +634,7 @@ void SControlsPanel::setControlLabelText(uint32_t index, UTF8StringPtr text) slot->label->setText(text); else slot->label->setText(getDefaultLabelText(index).c_str()); + slot->label->invalid(); } void SControlsPanel::recalculateSubViews()