From 7ad1ca525ea655bc2dcf3ea058e8c990eb03676c Mon Sep 17 00:00:00 2001 From: elasota Date: Wed, 22 Aug 2018 18:31:12 -0400 Subject: [PATCH] Hide "no BPTC if RGB" and "HDR Mode" options when not using "Video RAM" import. --- editor/import/resource_importer_texture.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index 7feb506270b..d03395c070e 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;