Ver código fonte

Merge pull request #59565 from SirQuartz/master

Rémi Verschelde 3 anos atrás
pai
commit
6b2481fcfe
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      editor/import/resource_importer_texture.cpp

+ 5 - 0
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"];