Browse Source

Merge pull request #21290 from elasota/texture-import-options

Hide unused options when not using "Video RAM" compression mode
Rémi Verschelde 7 years ago
parent
commit
0c0aa5fc6f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      editor/import/resource_importer_texture.cpp

+ 5 - 0
editor/import/resource_importer_texture.cpp

@@ -164,6 +164,11 @@ bool ResourceImporterTexture::get_option_visibility(const String &p_option, cons
 		if (compress_mode != COMPRESS_LOSSY && compress_mode != COMPRESS_VIDEO_RAM) {
 			return false;
 		}
+	} else if (p_option == "compress/no_bptc_if_rgb" || p_option == "compress/hdr_mode") {
+		int compress_mode = int(p_options["compress/mode"]);
+		if (compress_mode != COMPRESS_VIDEO_RAM) {
+			return false;
+		}
 	}
 
 	return true;