summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Mintram <james@rattlecan.games>2022-12-31 20:32:32 +0000
committerJames Mintram <james@rattlecan.games>2022-12-31 20:32:32 +0000
commit35d0f712bae35fe92c6e1fd7e66073833dc1adfd (patch)
tree11cdce04c7bc8354fba59d5a64e450395a0dcc04
parent8a98110e3e353a9a3b86b4a0bd56adf405bd6d93 (diff)
Add missing case statement to handle re-parent to new node
-rw-r--r--editor/scene_tree_dock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index f91b571118..973b822e7f 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -134,6 +134,8 @@ void SceneTreeDock::shortcut_input(const Ref<InputEvent> &p_event) {
_tool_selected(TOOL_MOVE_DOWN);
} else if (ED_IS_SHORTCUT("scene_tree/reparent", p_event)) {
_tool_selected(TOOL_REPARENT);
+ } else if (ED_IS_SHORTCUT("scene_tree/reparent_to_new_node", p_event)) {
+ _tool_selected(TOOL_REPARENT_TO_NEW_NODE);
} else if (ED_IS_SHORTCUT("scene_tree/save_branch_as_scene", p_event)) {
_tool_selected(TOOL_NEW_SCENE_FROM);
} else if (ED_IS_SHORTCUT("scene_tree/delete_no_confirm", p_event)) {