Skip to content

Commit

Permalink
Cleanup XRFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 18, 2019
1 parent 191fcf6 commit a2c4270
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/script/dom/xrframe.rs
Expand Up @@ -58,10 +58,11 @@ impl XRFrameMethods for XRFrame {
if reference.is_some() {
// it's not possible to obtain a reference
// space at all yet
return None;
None
} else {
let left = XRView::new(&self.global(), &self.session, XREye::Left, &self.data);
let right = XRView::new(&self.global(), &self.session, XREye::Right, &self.data);
Some(XRViewerPose::new(&self.global(), &left, &right))
}
let left = XRView::new(&self.global(), &self.session, XREye::Left, &self.data);
let right = XRView::new(&self.global(), &self.session, XREye::Right, &self.data);
Some(XRViewerPose::new(&self.global(), &left, &right))
}
}

0 comments on commit a2c4270

Please sign in to comment.