Skip to content

Commit 67704d0

Browse files
committed
Updated Frame handling for Videos so sprites have their own frames, not a reference to the Videos frame.
1 parent 12362a8 commit 67704d0

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/gameobjects/components/LoadTexture.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,8 @@ Phaser.Component.LoadTexture.prototype = {
6868
{
6969
// This works from a reference, which probably isn't what we need here
7070
this.setTexture(key.texture);
71-
71+
this.setFrame(key.texture.frame.clone());
7272
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-
}
7873
}
7974
else if (key instanceof PIXI.Texture)
8075
{

0 commit comments

Comments
 (0)