Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update initial camera query (fix #5023) #5024

Merged
merged 3 commits into from
Mar 14, 2022

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
@@ -43,7 +43,7 @@ module.exports.System = registerSystem('camera', {
}

// 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

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