Skip to content

Commit bf65d6b

Browse files
committed
Push to the updateList too
1 parent e5f5ed7 commit bf65d6b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/gameobjects/rope/RopeFactory.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ if (typeof WEBGL_RENDERER)
3131
{
3232
GameObjectFactory.register('rope', function (x, y, texture, frame, points, horizontal, colors, alphas)
3333
{
34-
return this.displayList.add(new Rope(this.scene, x, y, texture, frame, points, horizontal, colors, alphas));
34+
var rope = new Rope(this.scene, x, y, texture, frame, points, horizontal, colors, alphas);
35+
36+
this.displayList.add(rope);
37+
38+
return this.updateList.add(rope);
3539
});
3640
}
3741

0 commit comments

Comments
 (0)