You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Make all unsupported renderer message features consistently warnings
Previously, some messages indicating a lack of support were errors instead of warnings. Some messages were also not shown when running a release export template. - Use "renderer" terminology consistently instead of "rendering method".
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user