summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-04 08:37:57 +0200
committerGitHub <noreply@github.com>2018-10-04 08:37:57 +0200
commit171be91804d68adf7d36e36a3f15e885cda47bf7 (patch)
treea24b450bc4bc949dcb7469aa8411955d23a2f595
parentcaa141a1ac630144e441f89689baa1a74bb3bae5 (diff)
parent97ffdf74c34970db22c9a2cbcb58836bb2a8e2b0 (diff)
Merge pull request #22694 from swarnimarun/fix-create-spatial-root
Fixing create spatial root button
-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 f2c04d7326..08f1ece2d4 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -836,6 +836,8 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
editor_data->get_undo_redo().commit_action();
editor->edit_node(new_node);
+ editor_selection->clear();
+ editor_selection->add_node(new_node);
} break;