Skip to content

Conversation

@delapuente
Copy link
Contributor

Fix #3090

Prevents the camera system from taking into account a-mixin elements when
handling the active camera.

Prevents the camera system from taking into account a-mixin elements when
handling the active camera.
for (i = 0; i < cameraEls.length; i++) {
cameraEl = cameraEls[i];
if (newCameraEl === cameraEl) { continue; }
if (isMixin(cameraEl) || newCameraEl === cameraEl) { continue; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do !cameraEl.isEntity

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it return true for primitives also?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah.

@ngokevin ngokevin merged commit bb10959 into aframevr:master Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants