summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2020-03-09 04:31:11 +0900
committervolzhs <volzhs@gmail.com>2020-03-09 04:31:11 +0900
commit667a981d4d5315ab4c3cf44928cbe274dfe9bb01 (patch)
treee0e90e11c9ad1ef528a51110410461c82e04506c /editor/plugins/spatial_editor_plugin.h
parentbd553d072b65fe5359ab76e64566ff316d35c62e (diff)
downloadredot-engine-667a981d4d5315ab4c3cf44928cbe274dfe9bb01.tar.gz
Update snap setting only with OK
restore previous values with cancel
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r--editor/plugins/spatial_editor_plugin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index a4d6b13389..b79f2f5b79 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -545,6 +545,9 @@ private:
Ref<StandardMaterial3D> 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;
@@ -624,6 +627,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);