Merge pull request #62781 from MinusKube/tree-slider-bug

Fix range slider in tree not updating text value
This commit is contained in:
Rémi Verschelde 2022-07-13 14:13:38 +02:00 committed by GitHub
commit 207ef8a33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}