From 97ffdf74c34970db22c9a2cbcb58836bb2a8e2b0 Mon Sep 17 00:00:00 2001 From: swarnimarun Date: Thu, 4 Oct 2018 06:06:58 +0530 Subject: [PATCH] Fixing create spatial root button --- editor/scene_tree_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index f2c04d7326a..08f1ece2d44 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;