1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #111806 from Calinou/renderer-message-warnings

Make all unsupported renderer message features consistently warnings
This commit is contained in:
Rémi Verschelde
2025-12-02 14:15:43 +01:00
12 changed files with 47 additions and 31 deletions

View File

@@ -389,7 +389,7 @@ PackedStringArray GPUParticles2D::get_configuration_warnings() const {
}
if (trail_enabled && (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "dummy")) {
warnings.push_back(RTR("Particle trails are only available when using the Forward+ or Mobile renderers."));
warnings.push_back(RTR("Particle trails are only available when using the Forward+ or Mobile renderer."));
}
if (sub_emitter != NodePath() && (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "dummy")) {

View File

@@ -170,7 +170,7 @@ PackedStringArray Decal::get_configuration_warnings() const {
PackedStringArray warnings = VisualInstance3D::get_configuration_warnings();
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "dummy") {
warnings.push_back(RTR("Decals are only available when using the Forward+ or Mobile renderers."));
warnings.push_back(RTR("Decals are only available when using the Forward+ or Mobile renderer."));
return warnings;
}

View File

@@ -423,12 +423,12 @@ PackedStringArray GPUParticles3D::get_configuration_warnings() const {
warnings.push_back(RTR("Trails enabled, but one or more mesh materials are either missing or not set for trails rendering."));
}
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "dummy") {
warnings.push_back(RTR("Particle trails are only available when using the Forward+ or Mobile renderers."));
warnings.push_back(RTR("Particle trails are only available when using the Forward+ or Mobile renderer."));
}
}
if (sub_emitter != NodePath() && (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "dummy")) {
warnings.push_back(RTR("Particle sub-emitters are only available when using the Forward+ or Mobile renderers."));
warnings.push_back(RTR("Particle sub-emitters are only available when using the Forward+ or Mobile renderer."));
}
return warnings;

View File

@@ -522,11 +522,11 @@ PackedStringArray GeometryInstance3D::get_configuration_warnings() const {
}
if (!Math::is_zero_approx(transparency) && OS::get_singleton()->get_current_rendering_method() != "forward_plus") {
warnings.push_back(RTR("GeometryInstance3D transparency is only available when using the Forward+ rendering method."));
warnings.push_back(RTR("GeometryInstance3D transparency is only available when using the Forward+ renderer."));
}
if ((visibility_range_fade_mode == VISIBILITY_RANGE_FADE_SELF || visibility_range_fade_mode == VISIBILITY_RANGE_FADE_DEPENDENCIES) && OS::get_singleton()->get_current_rendering_method() != "forward_plus") {
warnings.push_back(RTR("GeometryInstance3D visibility range transparency fade is only available when using the Forward+ rendering method."));
warnings.push_back(RTR("GeometryInstance3D visibility range transparency fade is only available when using the Forward+ renderer."));
}
return warnings;