mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
Merge pull request #100306 from Uumutunal/master
Fix 3D editor snap setting values not being displayed correctly
This commit is contained in:
commit
19e003bc08
1 changed files with 6 additions and 3 deletions
|
@ -6630,9 +6630,12 @@ void Node3DEditor::_snap_changed() {
|
|||
}
|
||||
|
||||
void Node3DEditor::_snap_update() {
|
||||
snap_translate->set_text(String::num(snap_translate_value));
|
||||
snap_rotate->set_text(String::num(snap_rotate_value));
|
||||
snap_scale->set_text(String::num(snap_scale_value));
|
||||
double snap = EDITOR_GET("interface/inspector/default_float_step");
|
||||
int snap_step_decimals = Math::range_step_decimals(snap);
|
||||
|
||||
snap_translate->set_text(String::num(snap_translate_value, snap_step_decimals));
|
||||
snap_rotate->set_text(String::num(snap_rotate_value, snap_step_decimals));
|
||||
snap_scale->set_text(String::num(snap_scale_value, snap_step_decimals));
|
||||
}
|
||||
|
||||
void Node3DEditor::_xform_dialog_action() {
|
||||
|
|
Loading…
Reference in a new issue