Skip to content

Commit 7f504d4

Browse files
setDisplayFrame
setDisplayFrame的时候没有传入rect,导致绘制的是整张图片。
1 parent e79acd0 commit 7f504d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/particle/CCParticleSystem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
20362036
// update texture before updating texture rect
20372037
var texture = spriteFrame.getTexture(), locTexture = this._texture;
20382038
if (locTexture !== texture)
2039-
this.setTexture(texture);
2039+
this.setTextureWithRect(texture, spriteFrame.getRect());
20402040
},
20412041

20422042
/**

0 commit comments

Comments
 (0)