summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r--editor/editor_file_system.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index db54179633..b1d591d0f3 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -2012,6 +2012,11 @@ Error EditorFileSystem::_reimport_file(const String &p_file, const HashMap<Strin
}
}
+ if (FileAccess::exists(p_file + ".import")) {
+ // We only want to handle compat for existing files, not new ones.
+ importer->handle_compatibility_options(params);
+ }
+
//mix with default params, in case a parameter is missing
List<ResourceImporter::ImportOption> opts;