Skip to content

Update initial camera query (fix #5023)#5024

Merged
dmarcos merged 3 commits intoaframevr:masterfrom
mattrossman:camera-mixin
Mar 14, 2022
Merged

Update initial camera query (fix #5023)#5024
dmarcos merged 3 commits intoaframevr:masterfrom
mattrossman:camera-mixin

Conversation

@mattrossman
Copy link
Contributor

Description: Resolves #5023.

There are additional [camera] queries in camera.js that may need to be updated too, but for now I only changed the one that fixes the perpetual loading screen from the linked issue (verified in examples/test/mixin/index.html)

Changes proposed:

  • [camera] -> :not(a-mixin)[camera]

@dmarcos dmarcos changed the title Update initial camera query Update initial camera query (fix #5023) Mar 13, 2022

// Search for initial user-defined camera.
cameraEls = sceneEl.querySelectorAll('a-camera, [camera]');
cameraEls = sceneEl.querySelectorAll('a-camera, :not(a-mixin)[camera]');
Copy link
Member

Choose a reason for hiding this comment

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

Really nice and simple. Great work. Thanks so much.

@dmarcos
Copy link
Member

dmarcos commented Mar 14, 2022

@dmarcos
Copy link
Member

dmarcos commented Mar 14, 2022

I updated the PR to address the additional [camera] elements

@dmarcos
Copy link
Member

dmarcos commented Mar 14, 2022

Thanks so much. Great work.

@dmarcos dmarcos merged commit d780484 into aframevr:master Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use camera component on <a-mixin>

2 participants