summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-09 12:19:56 +0100
committerGitHub <noreply@github.com>2020-03-09 12:19:56 +0100
commitaf015f79d35364c66a6f4572aa3a1d3eb025b6de (patch)
treecc6d2789f4114fecd0996a2586f5ab948f0492f9 /editor/plugins/spatial_editor_plugin.h
parent1f37c8e0481220b8681803824ebea16b05639786 (diff)
parent667a981d4d5315ab4c3cf44928cbe274dfe9bb01 (diff)
downloadredot-engine-af015f79d35364c66a6f4572aa3a1d3eb025b6de.tar.gz
Merge pull request #36917 from volzhs/cancel-snap-setting
Update snap setting only with OK
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 14153dd63b..489bce1e15 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -592,6 +592,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;
@@ -671,6 +674,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);