mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
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:
parent
584ff92eed
commit
a17c6f78e9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue