Skip to content

Commit b864325

Browse files
authored
Merge pull request #7068 from samme/fix/particle-color-ease-update
Clear EmitterColorOp RGB arrays before repopulating
2 parents ea2a6c6 + b61e97d commit b864325

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gameobjects/particles/EmitterColorOp.js

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ var EmitterColorOp = new Class({
116116

117117
this.active = true;
118118

119+
this.r.length = 0;
120+
this.g.length = 0;
121+
this.b.length = 0;
122+
119123
// Populate the r,g,b arrays
120124
for (var i = 0; i < value.length; i++)
121125
{

0 commit comments

Comments
 (0)