mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Small conditional check in case someone has removed the animations property.
This commit is contained in:
parent
6a0b8b5e73
commit
34efa223cb
1 changed files with 5 additions and 1 deletions
|
@ -392,7 +392,11 @@ Phaser.Sprite.prototype.loadTexture = function (key, frame) {
|
|||
else
|
||||
{
|
||||
this.setTexture(new PIXI.Texture(PIXI.BaseTextureCache[key]));
|
||||
setFrame = !this.animations.loadFrameData(this.game.cache.getFrameData(key), frame);
|
||||
|
||||
if (this.animations)
|
||||
{
|
||||
setFrame = !this.animations.loadFrameData(this.game.cache.getFrameData(key), frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue