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

ability to lock spatial nodes transform in editor

This commit is contained in:
Jakub Grzesik
2017-10-23 21:21:15 +02:00
parent 35e7f99299
commit 518d907914
5 changed files with 112 additions and 4 deletions

View File

@@ -387,6 +387,8 @@ public:
TOOL_MODE_ROTATE,
TOOL_MODE_SCALE,
TOOL_MODE_LIST_SELECT,
TOOL_LOCK_SELECTED,
TOOL_UNLOCK_SELECTED,
TOOL_MAX
};
@@ -475,7 +477,8 @@ private:
MENU_VIEW_ORIGIN,
MENU_VIEW_GRID,
MENU_VIEW_CAMERA_SETTINGS,
MENU_LOCK_SELECTED,
MENU_UNLOCK_SELECTED
};
Button *tool_button[TOOL_MAX];
@@ -483,6 +486,9 @@ private:
MenuButton *transform_menu;
MenuButton *view_menu;
ToolButton *lock_button;
ToolButton *unlock_button;
AcceptDialog *accept;
ConfirmationDialog *snap_dialog;
@@ -539,6 +545,8 @@ private:
bool is_any_freelook_active() const;
void _refresh_menu_icons();
protected:
void _notification(int p_what);
//void _gui_input(InputEvent p_event);