We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12362a8 commit 67704d0Copy full SHA for 67704d0
1 file changed
src/gameobjects/components/LoadTexture.js
@@ -68,13 +68,8 @@ Phaser.Component.LoadTexture.prototype = {
68
{
69
// This works from a reference, which probably isn't what we need here
70
this.setTexture(key.texture);
71
-
+ this.setFrame(key.texture.frame.clone());
72
key.onChangeSource.add(this.resizeFrame, this);
73
74
- if (this.game.cache.getFrameData(key.key, Phaser.Cache.VIDEO))
75
- {
76
- setFrame = !this.animations.loadFrameData(this.game.cache.getFrameData(key.key, Phaser.Cache.VIDEO), frame);
77
- }
78
}
79
else if (key instanceof PIXI.Texture)
80
0 commit comments