mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Correctly initialize grip space
This commit is contained in:
parent
bf30bf26a4
commit
11e882385d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ impl XRInputSourceMethods for XRInputSource {
|
||||||
/// https://immersive-web.github.io/webxr/#dom-xrinputsource-gripspace
|
/// https://immersive-web.github.io/webxr/#dom-xrinputsource-gripspace
|
||||||
fn GetGripSpace(&self) -> Option<DomRoot<XRSpace>> {
|
fn GetGripSpace(&self) -> Option<DomRoot<XRSpace>> {
|
||||||
if self.info.supports_grip {
|
if self.info.supports_grip {
|
||||||
Some(self.target_ray_space.or_init(|| {
|
Some(self.grip_space.or_init(|| {
|
||||||
let global = self.global();
|
let global = self.global();
|
||||||
XRSpace::new_inputspace(&global, &self.session, &self, true)
|
XRSpace::new_inputspace(&global, &self.session, &self, true)
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue