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

Hide unused options when not using "Video RAM" compression mode
This commit is contained in:
Rémi Verschelde 2018-08-23 09:01:46 +02:00 committed by GitHub
commit 0c0aa5fc6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;