diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-09-10 16:24:59 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 16:24:59 -0300 |
commit | 6679790facfc039891384c9e3f98b2b3a51f6367 (patch) | |
tree | 84a4f6503d4cf38aed30f168d88ac001dcc59678 /editor/editor_file_system.cpp | |
parent | c30cffe1b0fa1e87c7b28139ee4765851f5d3398 (diff) | |
parent | f5d9c7b487166562a833fc86363d78468d711070 (diff) |
Merge pull request #52406 from ellenhp/libvorbis
Replace stb_vorbis with libvorbis
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r-- | editor/editor_file_system.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index aa89a14725..8523833d52 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -444,6 +444,10 @@ bool EditorFileSystem::_test_for_reimport(const String &p_path, bool p_only_impo Ref<ResourceImporter> importer = ResourceFormatImporter::get_singleton()->get_importer_by_name(importer_name); + if (importer.is_null()) { + return true; // the importer has possibly changed, try to reimport. + } + if (importer->get_format_version() > version) { return true; // version changed, reimport } |