You've already forked godot
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user