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 @@ -6629,9 +6629,12 @@ void Node3DEditor::_snap_changed() {
66296629}
66306630
66316631void Node3DEditor::_snap_update () {
6632- snap_translate->set_text (String::num (snap_translate_value));
6633- snap_rotate->set_text (String::num (snap_rotate_value));
6634- snap_scale->set_text (String::num (snap_scale_value));
6632+ double snap = EDITOR_GET (" interface/inspector/default_float_step" );
6633+ int snap_step_decimals = Math::range_step_decimals (snap);
6634+
6635+ snap_translate->set_text (String::num (snap_translate_value, snap_step_decimals));
6636+ snap_rotate->set_text (String::num (snap_rotate_value, snap_step_decimals));
6637+ snap_scale->set_text (String::num (snap_scale_value, snap_step_decimals));
66356638}
66366639
66376640void Node3DEditor::_xform_dialog_action () {
You can’t perform that action at this time.
0 commit comments