diff options
| author | Jakub Grzesik <kubecz3k@gmail.com> | 2017-10-23 21:21:15 +0200 |
|---|---|---|
| committer | Jakub Grzesik <kubecz3k@gmail.com> | 2017-11-11 12:56:37 +0100 |
| commit | 518d90791495359a26836c90c1d1ac101669e4ee (patch) | |
| tree | da65d3b11bff2b6121128f47bcad3cedfea31931 /editor/plugins/spatial_editor_plugin.h | |
| parent | 35e7f992993a69a1e25cc12109ef7cf885e18260 (diff) | |
| download | redot-engine-518d90791495359a26836c90c1d1ac101669e4ee.tar.gz | |
ability to lock spatial nodes transform in editor
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index c2b698068f..64acced01f 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -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); |
