Browse Source

Fixing create spatial root button

swarnimarun 7 years ago
parent
commit
97ffdf74c3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/scene_tree_dock.cpp

+ 2 - 0
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;