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

Fix bug when updating joints without requesting a hand in WebXR #19983

Merged
merged 1 commit into from
Aug 1, 2020

Conversation

fernandojsg
Copy link
Collaborator

The WebXRController._hand object is created just when you request a hand controller: renderer.xr.getHandSpace().
So if you haven't requested a hand, that object won't be created and it will break when trying to set the joints in the update loop.

@mrdoob mrdoob added this to the r120 milestone Aug 1, 2020
@mrdoob mrdoob merged commit c1857a3 into mrdoob:dev Aug 1, 2020
@mrdoob
Copy link
Owner

mrdoob commented Aug 1, 2020

Thanks!

@fernandojsg fernandojsg deleted the fixhand branch August 1, 2020 16:44
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.

2 participants