Improve getViewerPose()

This commit is contained in:
Manish Goregaokar 2019-03-18 16:24:30 -07:00
parent a2c4270f55
commit 22e5ce5ff3
3 changed files with 14 additions and 9 deletions

View file

@ -124,6 +124,9 @@ impl XRSessionMethods for XRSession {
// https://immersive-web.github.io/webxr/#create-a-reference-space
// XXXManishearth reject based on session type
// https://github.com/immersive-web/webxr/blob/master/spatial-tracking-explainer.md#practical-usage-guidelines
match options.type_ {
XRReferenceSpaceType::Identity => {
p.resolve_native(&XRReferenceSpace::identity(