Skip to content

Commit c99bec2

Browse files
committed
integrate v3.11 Camera API (camera.id)
1 parent 55e9f80 commit c99bec2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/UI/Element.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ let Element = (superclass) => class extends superclass{
1111

1212
this.ui.elements.push(this);
1313

14-
this.scene.cameras.main.ignore(this);
15-
let l = 1 << this.scene.cameras.cameras.length - 1;
16-
this.cameraFilter = l & ~this.ui.camera._id;
14+
let l = (1 << this.scene.cameras.cameras.length) - 1;
15+
this.cameraFilter = l & ~this.ui.camera.id;
1716

1817
return this;
1918
}

0 commit comments

Comments
 (0)