diff --git a/editor/src/editor/GUIComponents.cpp b/editor/src/editor/GUIComponents.cpp index 4e62a721..16ad7dd9 100644 --- a/editor/src/editor/GUIComponents.cpp +++ b/editor/src/editor/GUIComponents.cpp @@ -239,8 +239,10 @@ bool SValueMenu::onWheel(const CPoint& where, const CMouseWheelAxis& axis, const if (wheelInc != 0) { float oldValue = getValue(); setValueNormalized(getValueNormalized() + distance * wheelInc); - if (getValue() != oldValue) + if (getValue() != oldValue) { valueChanged(); + invalid(); + } } return true; } @@ -249,8 +251,10 @@ void SValueMenu::onItemClicked(int32_t index) { float oldValue = getValue(); setValue(menuItemValues_[index]); - if (getValue() != oldValue) + if (getValue() != oldValue) { valueChanged(); + invalid(); + } } ///