1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Update snap setting only with OK

restore previous values with cancel

(cherry picked from commit 667a981d4d)
This commit is contained in:
volzhs
2020-03-09 04:31:11 +09:00
committed by Rémi Verschelde
parent 5798c8135f
commit 644d49b156
2 changed files with 34 additions and 6 deletions

View File

@@ -579,6 +579,9 @@ private:
Ref<SpatialMaterial> plane_gizmo_color_hl[3];
int over_gizmo_handle;
float snap_translate_value;
float snap_rotate_value;
float snap_scale_value;
Ref<ArrayMesh> selection_box;
RID indicators;
@@ -658,6 +661,8 @@ private:
SpinBox *settings_znear;
SpinBox *settings_zfar;
void _snap_changed();
void _snap_update();
void _xform_dialog_action();
void _menu_item_pressed(int p_option);
void _menu_item_toggled(bool pressed, int p_option);