|
@@ -2148,6 +2148,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");
|