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

Add support for XRInputSource and target ray spaces #23292

Merged
merged 11 commits into from May 8, 2019
Prev

Fix orientation getter in XRRigidTransform

  • Loading branch information
Manishearth authored and SimonSapin committed May 7, 2019
commit f17f0664950b769e2e57dd7628463f9ad7e60699
@@ -93,7 +93,7 @@ impl XRRigidTransformMethods for XRRigidTransform {
}
// https://immersive-web.github.io/webxr/#dom-xrrigidtransform-orientation
fn Orientation(&self) -> DomRoot<DOMPointReadOnly> {
self.position.or_init(|| {
self.orientation.or_init(|| {
let r = &self.transform.rotation;
DOMPointReadOnly::new(&self.global(), r.i, r.j, r.k, r.r)
})
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.