From 0130bbfac000be512117baaca4cc8a08d525d9d2 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 15 Nov 2017 12:42:08 -0300 Subject: [PATCH] Make sure scan happens after all nodes enter scene (including plugins), fixes #9286 --- editor/editor_file_system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 9e002bc73dc..9db3bcba008 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -913,7 +913,8 @@ void EditorFileSystem::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { - scan(); + call_deferred("scan"); //this should happen after every editor node entered the tree + } break; case NOTIFICATION_EXIT_TREE: { if (use_threads && thread) {