You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix update_files from PR #92893
This commit is contained in:
@@ -1725,7 +1725,7 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
|
||||
|
||||
if (!_find_file(file, &fs, cpos)) {
|
||||
if (!fs) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1748,13 +1748,7 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
|
||||
memdelete(fs->files[cpos]);
|
||||
fs->files.remove_at(cpos);
|
||||
}
|
||||
|
||||
_update_pending_script_classes();
|
||||
_update_pending_scene_groups();
|
||||
call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
String type = ResourceLoader::get_resource_type(file);
|
||||
if (type.is_empty() && textfile_extensions.has(file.get_extension())) {
|
||||
type = "TextFile";
|
||||
@@ -1821,6 +1815,7 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
|
||||
_queue_update_scene_groups(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_update_pending_script_classes();
|
||||
_update_pending_scene_groups();
|
||||
|
||||
Reference in New Issue
Block a user