You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Merge pull request #12359 from kubecz3k/spatial-lock
ability to lock spatial nodes transform in editor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user