You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Fix _delete_internal_files() receiving wrong path
This commit is contained in:
@@ -933,15 +933,16 @@ bool EditorFileSystem::_update_scan_actions() {
|
|||||||
int idx = ia.dir->find_file_index(ia.file);
|
int idx = ia.dir->find_file_index(ia.file);
|
||||||
ERR_CONTINUE(idx == -1);
|
ERR_CONTINUE(idx == -1);
|
||||||
|
|
||||||
String class_name = ia.dir->files[idx]->class_info.name;
|
const String file_path = ia.dir->get_file_path(idx);
|
||||||
|
const String class_name = ia.dir->files[idx]->class_info.name;
|
||||||
if (ClassDB::is_parent_class(ia.dir->files[idx]->type, SNAME("Script"))) {
|
if (ClassDB::is_parent_class(ia.dir->files[idx]->type, SNAME("Script"))) {
|
||||||
_queue_update_script_class(ia.dir->get_file_path(idx), ScriptClassInfoUpdate());
|
_queue_update_script_class(file_path, ScriptClassInfoUpdate());
|
||||||
}
|
}
|
||||||
if (ia.dir->files[idx]->type == SNAME("PackedScene")) {
|
if (ia.dir->files[idx]->type == SNAME("PackedScene")) {
|
||||||
_queue_update_scene_groups(ia.dir->get_file_path(idx));
|
_queue_update_scene_groups(file_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
_delete_internal_files(ia.dir->files[idx]->file);
|
_delete_internal_files(file_path);
|
||||||
memdelete(ia.dir->files[idx]);
|
memdelete(ia.dir->files[idx]);
|
||||||
ia.dir->files.remove_at(idx);
|
ia.dir->files.remove_at(idx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user