Skip to content

Commit f583153

Browse files
CCParticleSystem.setDisplayFrame
修正使用同一个frame的不同图片无效的问题
1 parent 7f504d4 commit f583153

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cocos2d/particle/CCParticleSystem.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2035,8 +2035,7 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
20352035

20362036
// update texture before updating texture rect
20372037
var texture = spriteFrame.getTexture(), locTexture = this._texture;
2038-
if (locTexture !== texture)
2039-
this.setTextureWithRect(texture, spriteFrame.getRect());
2038+
this.setTextureWithRect(texture, spriteFrame.getRect());
20402039
},
20412040

20422041
/**

0 commit comments

Comments
 (0)