diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-01 21:29:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 21:29:33 +0100 |
commit | b5707400ebb3daa346fece54c119a5da70852647 (patch) | |
tree | 05a82f8a1434e4fa380d9e78cd34c3bcb33ecb1e /editor/import | |
parent | dc4483a3a74a4cac83fc0387ea4d09066a0a0e1c (diff) | |
parent | fc27636999a15f88b1f3b1d7101d84a67968ba06 (diff) |
Merge pull request #57525 from AnilBK/vector-use-clear-has
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/resource_importer_layered_texture.cpp | 2 | ||||
-rw-r--r-- | editor/import/resource_importer_texture.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/resource_importer_layered_texture.cpp b/editor/import/resource_importer_layered_texture.cpp index 7ca61e83e7..d63366638e 100644 --- a/editor/import/resource_importer_layered_texture.cpp +++ b/editor/import/resource_importer_layered_texture.cpp @@ -517,7 +517,7 @@ bool ResourceImporterLayeredTexture::are_import_settings_valid(const String &p_p String setting_path = "rendering/textures/vram_compression/import_" + String(compression_formats[index]); bool test = ProjectSettings::get_singleton()->get(setting_path); if (test) { - if (formats_imported.find(compression_formats[index]) == -1) { + if (!formats_imported.has(compression_formats[index])) { valid = false; break; } diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index f21012258c..69c705ed5a 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -628,7 +628,7 @@ bool ResourceImporterTexture::are_import_settings_valid(const String &p_path) co String setting_path = "rendering/textures/vram_compression/import_" + String(compression_formats[index]); bool test = ProjectSettings::get_singleton()->get(setting_path); if (test) { - if (formats_imported.find(compression_formats[index]) == -1) { + if (!formats_imported.has(compression_formats[index])) { valid = false; break; } |