mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix floating point precision errors when setting particle trail length
This commit is contained in:
@@ -185,7 +185,7 @@ void GPUParticles2D::set_trail_enabled(bool p_enabled) {
|
||||
}
|
||||
|
||||
void GPUParticles2D::set_trail_lifetime(double p_seconds) {
|
||||
ERR_FAIL_COND(p_seconds < 0.01);
|
||||
ERR_FAIL_COND(p_seconds < 0.01 - CMP_EPSILON);
|
||||
trail_lifetime = p_seconds;
|
||||
RS::get_singleton()->particles_set_trails(particles, trail_enabled, trail_lifetime);
|
||||
queue_redraw();
|
||||
|
||||
Reference in New Issue
Block a user