summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-11-20 16:02:20 +0100
committerGitHub <noreply@github.com>2017-11-20 16:02:20 +0100
commitd1831915bf009b263d13cf8fe722e10d48fe1a30 (patch)
tree7df35da841ae7533f22d83e1dde4e9e0099fa5b5 /editor/plugins/spatial_editor_plugin.h
parent450bdda97a933ed9081efa20bddc71ee0b8286c9 (diff)
parent518d90791495359a26836c90c1d1ac101669e4ee (diff)
downloadredot-engine-d1831915bf009b263d13cf8fe722e10d48fe1a30.tar.gz
Merge pull request #12359 from kubecz3k/spatial-lock
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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h
index c986e45f43..ad11ec33df 100644
--- a/editor/plugins/spatial_editor_plugin.h
+++ b/editor/plugins/spatial_editor_plugin.h
@@ -391,6 +391,8 @@ public:
TOOL_MODE_ROTATE,
TOOL_MODE_SCALE,
TOOL_MODE_LIST_SELECT,
+ TOOL_LOCK_SELECTED,
+ TOOL_UNLOCK_SELECTED,
TOOL_MAX
};
@@ -479,7 +481,8 @@ private:
MENU_VIEW_ORIGIN,
MENU_VIEW_GRID,
MENU_VIEW_CAMERA_SETTINGS,
-
+ MENU_LOCK_SELECTED,
+ MENU_UNLOCK_SELECTED
};
Button *tool_button[TOOL_MAX];
@@ -487,6 +490,9 @@ private:
MenuButton *transform_menu;
MenuButton *view_menu;
+ ToolButton *lock_button;
+ ToolButton *unlock_button;
+
AcceptDialog *accept;
ConfirmationDialog *snap_dialog;
@@ -543,6 +549,8 @@ private:
bool is_any_freelook_active() const;
+ void _refresh_menu_icons();
+
protected:
void _notification(int p_what);
//void _gui_input(InputEvent p_event);