Skip to content

Commit

Permalink
Fix orientation getter in XRRigidTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth authored and SimonSapin committed May 7, 2019
1 parent 0756923 commit f17f066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/xrrigidtransform.rs
Expand Up @@ -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)
})
Expand Down

0 comments on commit f17f066

Please sign in to comment.