diff options
author | Ellen Poe <ellenhp@google.com> | 2021-09-09 18:54:18 -0700 |
---|---|---|
committer | Ellen Poe <ellenhp@google.com> | 2021-09-09 19:39:04 -0700 |
commit | f5d9c7b487166562a833fc86363d78468d711070 (patch) | |
tree | 3893f6fa0efdf3d657726074a8a1486a6f890742 /editor | |
parent | 0d5e13cd805a1aa69c5f395483051d3501bcfcd3 (diff) |
Replace stb_vorbis with libogg+libvorbis
Diffstat (limited to 'editor')
-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 } |