aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_file_system.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-11-15 12:42:08 -0300
committerJuan Linietsky2017-11-15 12:42:08 -0300
commit0130bbfac000be512117baaca4cc8a08d525d9d2 (patch)
tree39ec4216f01cc9ca088d6848b4ee458cc9495a07 /editor/editor_file_system.cpp
parent7010ee3cb980fca18248fa168a4dabd78cf51e9d (diff)
downloadgodot-0130bbfac000be512117baaca4cc8a08d525d9d2.tar.gz
godot-0130bbfac000be512117baaca4cc8a08d525d9d2.tar.zst
godot-0130bbfac000be512117baaca4cc8a08d525d9d2.zip
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r--editor/editor_file_system.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index 9e002bc73..9db3bcba0 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) {