mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Show shader baker related export warnings only if enabled
This commit is contained in:
parent
5dd76968d8
commit
8bf87a6b2c
4 changed files with 4 additions and 4 deletions
|
@ -103,7 +103,7 @@ String EditorExportPlatformMacOS::get_export_option_warning(const EditorExportPr
|
|||
}
|
||||
}
|
||||
|
||||
if (p_name == "shader_baker/enabled") {
|
||||
if (p_name == "shader_baker/enabled" && bool(p_preset->get("shader_baker/enabled"))) {
|
||||
String export_renderer = GLOBAL_GET("rendering/renderer/rendering_method");
|
||||
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
|
||||
return TTR("\"Shader Baker\" is not supported when using the Compatibility renderer.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue