Skip to content
Permalink
Browse files

Correctly initialize grip space

  • Loading branch information
Manishearth committed Jan 8, 2020
1 parent bf30bf2 commit 11e882385d92dab96350adb5e3531d1b8c248c27
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/script/dom/xrinputsource.rs
@@ -75,7 +75,7 @@ impl XRInputSourceMethods for XRInputSource {
/// https://immersive-web.github.io/webxr/#dom-xrinputsource-gripspace
fn GetGripSpace(&self) -> Option<DomRoot<XRSpace>> {
if self.info.supports_grip {
Some(self.target_ray_space.or_init(|| {
Some(self.grip_space.or_init(|| {
let global = self.global();
XRSpace::new_inputspace(&global, &self.session, &self, true)
}))

0 comments on commit 11e8823

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