Merge pull request #107568 from Rudolph-B/Issue-92708

Fix floating point precision errors when setting particle trail length
This commit is contained in:
Thaddeus Crews 2025-07-01 17:57:58 -05:00
commit e750950dc6
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
3 changed files with 3 additions and 3 deletions

View file

@ -439,7 +439,7 @@ void ParticlesStorage::particles_set_fractional_delta(RID p_particles, bool p_en
void ParticlesStorage::particles_set_trails(RID p_particles, bool p_enable, double p_length) {
Particles *particles = particles_owner.get_or_null(p_particles);
ERR_FAIL_NULL(particles);
ERR_FAIL_COND(p_length < 0.01);
ERR_FAIL_COND(p_length < 0.01 - CMP_EPSILON);
p_length = MIN(10.0, p_length);
particles->trails_enabled = p_enable;