1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Fix update_files from PR #92893

This commit is contained in:
Hilderin
2024-06-10 20:03:18 -04:00
parent 5241d30bfa
commit 9f8a918ade

View File

@@ -1725,7 +1725,7 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
if (!_find_file(file, &fs, cpos)) { if (!_find_file(file, &fs, cpos)) {
if (!fs) { if (!fs) {
return; continue;
} }
} }
@@ -1748,13 +1748,7 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
memdelete(fs->files[cpos]); memdelete(fs->files[cpos]);
fs->files.remove_at(cpos); fs->files.remove_at(cpos);
} }
} else {
_update_pending_script_classes();
_update_pending_scene_groups();
call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
return;
}
String type = ResourceLoader::get_resource_type(file); String type = ResourceLoader::get_resource_type(file);
if (type.is_empty() && textfile_extensions.has(file.get_extension())) { if (type.is_empty() && textfile_extensions.has(file.get_extension())) {
type = "TextFile"; type = "TextFile";
@@ -1821,6 +1815,7 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
_queue_update_scene_groups(file); _queue_update_scene_groups(file);
} }
} }
}
_update_pending_script_classes(); _update_pending_script_classes();
_update_pending_scene_groups(); _update_pending_scene_groups();