You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Hide "no BPTC if RGB" and "HDR Mode" options when not using "Video RAM" import.
This commit is contained in:
@@ -164,6 +164,11 @@ bool ResourceImporterTexture::get_option_visibility(const String &p_option, cons
|
|||||||
if (compress_mode != COMPRESS_LOSSY && compress_mode != COMPRESS_VIDEO_RAM) {
|
if (compress_mode != COMPRESS_LOSSY && compress_mode != COMPRESS_VIDEO_RAM) {
|
||||||
return false;
|
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;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user