summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-08-23 09:01:46 +0200
committerGitHub <noreply@github.com>2018-08-23 09:01:46 +0200
commit0c0aa5fc6f50374beb9add3a7f7bcdd5ddaeb287 (patch)
treeab7f3cbeb88667ba81b66f2967ec4b1389455956
parent1e729630d6bff3a32751a1850271b080494373ba (diff)
parent7ad1ca525ea655bc2dcf3ea058e8c990eb03676c (diff)
Merge pull request #21290 from elasota/texture-import-options
Hide unused options when not using "Video RAM" compression mode
-rw-r--r--editor/import/resource_importer_texture.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp
index 7feb506270..d03395c070 100644
--- a/editor/import/resource_importer_texture.cpp
+++ b/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;