diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-11-15 12:42:08 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-11-15 12:42:08 -0300 |
commit | 0130bbfac000be512117baaca4cc8a08d525d9d2 (patch) | |
tree | 39ec4216f01cc9ca088d6848b4ee458cc9495a07 | |
parent | 7010ee3cb980fca18248fa168a4dabd78cf51e9d (diff) |
Make sure scan happens after all nodes enter scene (including plugins), fixes #9286
-rw-r--r-- | editor/editor_file_system.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 9e002bc73d..9db3bcba00 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) { |