summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-13 14:13:38 +0200
committerGitHub <noreply@github.com>2022-07-13 14:13:38 +0200
commit207ef8a33d109ca7da49d2a61df72ed9dcbabe1e (patch)
tree25e3c29047d1a1ae707a9d9c98024d095eb296db /scene/gui
parent19b10e27846263e91d019c184c1c40b1947b7fe2 (diff)
parented68f867fb87485f8b92b19206b7b9efc90e452d (diff)
Merge pull request #62781 from MinusKube/tree-slider-bug
Fix range slider in tree not updating text value
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 4bb8208679..f43a91b85f 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2815,6 +2815,9 @@ void Tree::value_editor_changed(double p_value) {
TreeItem::Cell &c = popup_edited_item->cells.write[popup_edited_item_col];
c.val = p_value;
+
+ text_editor->set_text(String::num(c.val, Math::range_step_decimals(c.step)));
+
item_edited(popup_edited_item_col, popup_edited_item);
update();
}