Particle.alpha is now clamped to the range 0 to 1 within the update method, preventing it from going out of range. Fix #6551

This commit is contained in:
Richard Davey 2023-07-21 17:18:59 +01:00
parent 584ff92eed
commit a17c6f78e9

View file

@ -638,7 +638,7 @@ var Particle = new Class({
return true;
}
this.alpha = ops.alpha.onUpdate(this, 'alpha', t, this.alpha);
this.alpha = Clamp(ops.alpha.onUpdate(this, 'alpha', t, this.alpha), 0, 1);
if (ops.color.active)
{