From 617286dd278b4292329f1bb7be77364ce10e7dd0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 20 Nov 2022 23:47:20 +0100 Subject: [PATCH] Don't let the SceneTreeDock add the root node buttons more than once. --- editor/scene_tree_dock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 362ebaf02..0d01f4c14 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -3101,6 +3101,14 @@ void SceneTreeDock::_update_create_root_dialog() { } if (beginner_nodes) { + for (int i = 0; i < beginner_nodes->get_child_count(); ++i) { + Button *button = Object::cast_to