diff options
author | clayjohn <claynjohn@gmail.com> | 2023-02-25 16:24:41 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-02-26 12:28:02 -0800 |
commit | c69b14e96e3191622c06aa1e98c7f15f1fc895d4 (patch) | |
tree | 59ea6fe8dd90524515103038b117cf1c2a0902c5 /scene/2d | |
parent | 84a80721c5308df36c7295949c76a622c5e0edb9 (diff) |
Add warnings for unsupported features in mobile and gl_compatibility backends
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/gpu_particles_2d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/2d/gpu_particles_2d.cpp b/scene/2d/gpu_particles_2d.cpp index 00d13c59b9..3f887ae9f3 100644 --- a/scene/2d/gpu_particles_2d.cpp +++ b/scene/2d/gpu_particles_2d.cpp @@ -143,6 +143,7 @@ void GPUParticles2D::set_trail_enabled(bool p_enabled) { trail_enabled = p_enabled; RS::get_singleton()->particles_set_trails(particles, trail_enabled, trail_lifetime); queue_redraw(); + update_configuration_warnings(); RS::get_singleton()->particles_set_transform_align(particles, p_enabled ? RS::PARTICLES_TRANSFORM_ALIGN_Y_TO_VELOCITY : RS::PARTICLES_TRANSFORM_ALIGN_DISABLED); } @@ -314,6 +315,10 @@ PackedStringArray GPUParticles2D::get_configuration_warnings() const { } } + if (trail_enabled && OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { + warnings.push_back(RTR("Particle trails are only available when using the Forward+ or Mobile rendering backends.")); + } + return warnings; } |