summaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-07-26 22:31:03 +0200
committerGitHub <noreply@github.com>2018-07-26 22:31:03 +0200
commit6cf5eb8e377bafc99b907c3c38c4066f680811f4 (patch)
tree1684520dad24ec3a73d76f8c817b680580ebe0b3 /editor/plugins/spatial_editor_plugin.h
parent03e11c13bfb1649fc9cf9a460249bce5e7f07462 (diff)
parentaf725094d7f7a099766d32b6603aeb93b55ab035 (diff)
Merge pull request #20022 from EIREXE/snap_to_floor
Add snap to floor functionality to the editor
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r--editor/plugins/spatial_editor_plugin.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index c89db1867b..ac08aa2f4c 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -109,7 +109,6 @@ private:
int index;
String name;
void _menu_option(int p_option);
-
Spatial *preview_node;
AABB *preview_bounds;
Vector<String> selected_files;
@@ -405,7 +404,6 @@ public:
TOOL_LOCK_SELECTED,
TOOL_UNLOCK_SELECTED,
TOOL_MAX
-
};
enum ToolOptions {
@@ -489,7 +487,8 @@ private:
MENU_VIEW_CAMERA_SETTINGS,
MENU_LOCK_SELECTED,
MENU_UNLOCK_SELECTED,
- MENU_VISIBILITY_SKELETON
+ MENU_VISIBILITY_SKELETON,
+ MENU_SNAP_TO_FLOOR
};
Button *tool_button[TOOL_MAX];
@@ -598,7 +597,7 @@ public:
void update_transform_gizmo();
void update_all_gizmos();
-
+ void snap_selected_nodes_to_floor();
void select_gizmo_highlight_axis(int p_axis);
void set_custom_camera(Node *p_camera) { custom_camera = p_camera; }