diff options
author | elasota <ejlasota@gmail.com> | 2018-08-22 18:31:12 -0400 |
---|---|---|
committer | elasota <ejlasota@gmail.com> | 2018-08-22 18:31:12 -0400 |
commit | 7ad1ca525ea655bc2dcf3ea058e8c990eb03676c (patch) | |
tree | 5070af3940d6fae26d3ae7f7e3bd0f358dbf34b0 | |
parent | 334acc017ff1f89c05a8c9dc362c584bc843c182 (diff) |
Hide "no BPTC if RGB" and "HDR Mode" options when not using "Video RAM" import.
-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 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; |