1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Add snap to floor functionality to the editor

This commit is contained in:
Alex Roman
2018-07-26 08:34:40 +02:00
parent cfcb6e11f2
commit af725094d7
2 changed files with 123 additions and 4 deletions

View File

@@ -107,7 +107,6 @@ private:
int index;
String name;
void _menu_option(int p_option);
Spatial *preview_node;
AABB *preview_bounds;
Vector<String> selected_files;
@@ -402,7 +401,6 @@ public:
TOOL_LOCK_SELECTED,
TOOL_UNLOCK_SELECTED,
TOOL_MAX
};
enum ToolOptions {
@@ -486,7 +484,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];
@@ -595,7 +594,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; }