diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-28 12:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 12:28:43 +0200 |
commit | 6b2481fcfee06c1c946c59cf3f9b21347573d339 (patch) | |
tree | 0a4fff7d9d1a7e1946fd9bd59ad245d0b70849a6 | |
parent | 8e7d2826d818cbf8915759d86e58df0ba3a193b5 (diff) | |
parent | 01ca9d3eec71154b6b0d32d34cab6b9fdb6fd24c (diff) |
Merge pull request #59565 from SirQuartz/master
-rw-r--r-- | editor/import/resource_importer_texture.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index 8d6db7d1e0..e2fa624fc6 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -171,6 +171,11 @@ bool ResourceImporterTexture::get_option_visibility(const String &p_path, const if (compress_mode < COMPRESS_VRAM_COMPRESSED) { return false; } + } else if (p_option == "compress/normal_map") { + int compress_mode = int(p_options["compress/mode"]); + if (compress_mode == COMPRESS_LOSSLESS) { + return false; + } } else if (p_option == "mipmaps/limit") { return p_options["mipmaps/generate"]; |