mirror of
https://github.com/wassname/phaser.git
synced 2026-08-12 12:20:38 +08:00
New examples page
This commit is contained in:
@@ -880,7 +880,19 @@ Object.defineProperty(Phaser.Sprite.prototype, "crop", {
|
||||
this._cropRect = value;
|
||||
this.setTexture(PIXI.TextureCache[this._cropUUID]);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._cropRect = null;
|
||||
|
||||
if (this.animations.isLoaded)
|
||||
{
|
||||
this.animations.refreshFrame();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setTexture(PIXI.TextureCache[this.key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user