mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +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,9 +392,13 @@ Phaser.Sprite.prototype.loadTexture = function (key, frame) {
|
|||
else
|
||||
{
|
||||
this.setTexture(new PIXI.Texture(PIXI.BaseTextureCache[key]));
|
||||
|
||||
if (this.animations)
|
||||
{
|
||||
setFrame = !this.animations.loadFrameData(this.game.cache.getFrameData(key), frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (setFrame)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue