You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Hide "Normal Map" import option when using lossless compression on Texture
This pull request resolves an issue where images being imported with lossless compression allowed you to select a normal map, but the normal map only applies if you're using VRAM compression. Thereby making it redundant to appear when using lossless compression. This pull request hides the normal map option when lossless compression is selected. Resolves: #59435
This commit is contained in:
committed by
Rémi Verschelde
parent
795304e34f
commit
01ca9d3eec
@@ -171,6 +171,11 @@ bool ResourceImporterTexture::get_option_visibility(const String &p_path, const
|
|||||||
if (compress_mode < COMPRESS_VRAM_COMPRESSED) {
|
if (compress_mode < COMPRESS_VRAM_COMPRESSED) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} else if (p_option == "compress/normal_map") {
|
||||||
|
int compress_mode = int(p_options["compress/mode"]);
|
||||||
|
if (compress_mode == COMPRESS_LOSSLESS) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else if (p_option == "mipmaps/limit") {
|
} else if (p_option == "mipmaps/limit") {
|
||||||
return p_options["mipmaps/generate"];
|
return p_options["mipmaps/generate"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user