File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6630,9 +6630,12 @@ void Node3DEditor::_snap_changed() {
66306630}
66316631
66326632void Node3DEditor::_snap_update () {
6633- snap_translate->set_text (String::num (snap_translate_value));
6634- snap_rotate->set_text (String::num (snap_rotate_value));
6635- snap_scale->set_text (String::num (snap_scale_value));
6633+ double snap = EDITOR_GET (" interface/inspector/default_float_step" );
6634+ int snap_step_decimals = Math::range_step_decimals (snap);
6635+
6636+ snap_translate->set_text (String::num (snap_translate_value, snap_step_decimals));
6637+ snap_rotate->set_text (String::num (snap_rotate_value, snap_step_decimals));
6638+ snap_scale->set_text (String::num (snap_scale_value, snap_step_decimals));
66366639}
66376640
66386641void Node3DEditor::_xform_dialog_action () {
You can’t perform that action at this time.
0 commit comments