mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #107568 from Rudolph-B/Issue-92708
Fix floating point precision errors when setting particle trail length
This commit is contained in:
commit
e750950dc6
3 changed files with 3 additions and 3 deletions
|
|
@ -244,7 +244,7 @@ void GPUParticles3D::set_trail_enabled(bool p_enabled) {
|
|||
}
|
||||
|
||||
void GPUParticles3D::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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue