From 2fd39eca306b5f24acaa78987111756aa5460f69 Mon Sep 17 00:00:00 2001 From: kerstop Date: Fri, 23 Aug 2024 12:25:13 -0500 Subject: [PATCH] fix deadzone slider not working correctly --- scene/gui/tree.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 46fcdcf7f6c2..e9c70e4a7b3a 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -3272,12 +3272,10 @@ void Tree::value_editor_changed(double p_value) { return; } - TreeItem::Cell &c = popup_edited_item->cells.write[popup_edited_item_col]; - c.val = p_value; + const TreeItem::Cell &c = popup_edited_item->cells[popup_edited_item_col]; - line_editor->set_text(String::num(c.val, Math::range_step_decimals(c.step))); + line_editor->set_text(String::num(p_value, Math::range_step_decimals(c.step))); - item_edited(popup_edited_item_col, popup_edited_item); queue_redraw(); }