1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Show shader baker related export warnings only if enabled

This commit is contained in:
Anish Mishra
2025-06-06 20:44:11 +05:30
parent 5dd76968d8
commit 8bf87a6b2c
4 changed files with 4 additions and 4 deletions

View File

@@ -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.");