You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fixed issue where descriptor is left hanging, which causes file locked on Windows, closes #26342
This commit is contained in:
@@ -342,10 +342,7 @@ bool EditorFileSystem::_test_for_reimport(const String &p_path, bool p_only_impo
|
|||||||
if (!reimport_on_missing_imported_files && p_only_imported_files)
|
if (!reimport_on_missing_imported_files && p_only_imported_files)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Error err;
|
if (!FileAccess::exists(p_path + ".import")) {
|
||||||
FileAccess *f = FileAccess::open(p_path + ".import", FileAccess::READ, &err);
|
|
||||||
|
|
||||||
if (!f) { //no import file, do reimport
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -354,6 +351,13 @@ bool EditorFileSystem::_test_for_reimport(const String &p_path, bool p_only_impo
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Error err;
|
||||||
|
FileAccess *f = FileAccess::open(p_path + ".import", FileAccess::READ, &err);
|
||||||
|
|
||||||
|
if (!f) { //no import file, do reimport
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
VariantParser::StreamFile stream;
|
VariantParser::StreamFile stream;
|
||||||
stream.f = f;
|
stream.f = f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user