setDisplayFrame: function (spriteFrame) {
if (!spriteFrame)
return;
var locOffset = spriteFrame.getOffsetInPixels();
if (locOffset.x !== 0 || locOffset.y !== 0)
cc.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
// update texture before updating texture rect
var texture = spriteFrame.getTexture(), locTexture = this._texture;
if (locTexture !== texture)
//this.setTexture(texture);原来的代码
this.setTextureWithRect(texture, spriteFrame.getRect());
},
另外,希望引擎在这里能支持旋转。