Skip to content

Commit

Permalink
fix deadzone slider not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kerstop committed Aug 23, 2024
1 parent a1acd38 commit 2fd39ec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 2fd39ec

Please sign in to comment.