diff options
author | clayjohn <claynjohn@gmail.com> | 2023-07-10 10:17:27 +0200 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-07-10 10:17:27 +0200 |
commit | 78ecdb17f955b39decfc8122f8ba276640d2da85 (patch) | |
tree | 75bbb7c384fd288b6867d29ddaaf94a0eadfc7f7 /servers/rendering/renderer_rd/storage_rd/particles_storage.cpp | |
parent | 9d089fe6e501e4818fed1b0688631c4d65d1ba35 (diff) | |
download | redot-engine-78ecdb17f955b39decfc8122f8ba276640d2da85.tar.gz |
Unify error condition for particles trail lifetime
Diffstat (limited to 'servers/rendering/renderer_rd/storage_rd/particles_storage.cpp')
-rw-r--r-- | servers/rendering/renderer_rd/storage_rd/particles_storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp b/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp index b36e027f07..6bfc0403cf 100644 --- a/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp +++ b/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp @@ -430,7 +430,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_COND(!particles); - ERR_FAIL_COND(p_length < 0.1); + ERR_FAIL_COND(p_length < 0.01); p_length = MIN(10.0, p_length); particles->trails_enabled = p_enable; |