From 11e882385d92dab96350adb5e3531d1b8c248c27 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 8 Jan 2020 16:42:11 +0530 Subject: [PATCH] Correctly initialize grip space --- components/script/dom/xrinputsource.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/xrinputsource.rs b/components/script/dom/xrinputsource.rs index 7516fe49f2f..d24e328d361 100644 --- a/components/script/dom/xrinputsource.rs +++ b/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> { 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) }))