Merge pull request #79270 from clayjohn/particle-trails-error
Unify error condition for particles trail lifetime
This commit is contained in:
commit
7030ac555f
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue