From feb45aaf4bcde4361fa0924a9c805f08f9080c60 Mon Sep 17 00:00:00 2001 From: sersoong Date: Fri, 24 Nov 2017 12:32:57 +0800 Subject: [PATCH] Fix context menu of first node in a new scene --- editor/scene_tree_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index cba55cac779..2ca621e24d2 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1358,7 +1358,7 @@ void SceneTreeDock::_create() { editor_data->get_undo_redo().commit_action(); editor->push_item(c); - + editor_selection->clear(); if (Object::cast_to(c)) { //make editor more comfortable, so some controls don't appear super shrunk Control *ct = Object::cast_to(c);