Skip to content

Commit

Permalink
Hide "no BPTC if RGB" and "HDR Mode" options when not using "Video RA…
Browse files Browse the repository at this point in the history
…M" import.
  • Loading branch information
elasota committed Aug 22, 2018
1 parent 334acc0 commit 7ad1ca5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/import/resource_importer_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ad1ca5

Please sign in to comment.