Skip to content

Commit 10b0853

Browse files
authored
Merge pull request phaserjs#3050 from igorpetushkov/master
Fix Sprite animation with BuildGameObject
2 parents 2c9a53d + 377cb9f commit 10b0853

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

v3/src/gameobjects/BuildGameObject.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ var BuildGameObject = function (scene, gameObject, config)
9696
if (add)
9797
{
9898
scene.sys.displayList.add(gameObject);
99+
100+
if (gameObject.preUpdate)
101+
{
102+
scene.sys.updateList.add(gameObject);
103+
}
99104
}
100105

101106
return gameObject;

0 commit comments

Comments
 (0)