You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Prevent overriding file info of another file when reimport creates files
(cherry picked from commit aae48ac2b6)
This commit is contained in:
committed by
Yuri Sizov
parent
ce34a9b9a1
commit
c8bb637c57
@@ -2154,6 +2154,9 @@ Error EditorFileSystem::_reimport_file(const String &p_file, const HashMap<Strin
|
||||
}
|
||||
}
|
||||
|
||||
// Update cpos, newly created files could've changed the index of the reimported p_file.
|
||||
_find_file(p_file, &fs, cpos);
|
||||
|
||||
//update modified times, to avoid reimport
|
||||
fs->files[cpos]->modified_time = FileAccess::get_modified_time(p_file);
|
||||
fs->files[cpos]->import_modified_time = FileAccess::get_modified_time(p_file + ".import");
|
||||
|
||||
Reference in New Issue
Block a user