Skip to content
Permalink
Browse files

Fix orientation getter in XRRigidTransform

  • Loading branch information...
Manishearth authored and SimonSapin committed May 3, 2019
1 parent 0756923 commit f17f0664950b769e2e57dd7628463f9ad7e60699
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/script/dom/xrrigidtransform.rs
@@ -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)
})

0 comments on commit f17f066

Please sign in to comment.
You can’t perform that action at this time.