diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-12-11 18:16:41 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-12-11 22:12:06 -0800 |
commit | 322463450d5677c588662f8df965614afe3e23f2 (patch) | |
tree | 95c8da1a82a9a1f021df17830ecd4ebdf03ec753 /components/script/dom/xrspace.rs | |
parent | 0bace66f70c27cad41f64eab85a74f2f2ce67797 (diff) | |
download | servo-322463450d5677c588662f8df965614afe3e23f2.tar.gz servo-322463450d5677c588662f8df965614afe3e23f2.zip |
Support nullable origins and floors
Diffstat (limited to 'components/script/dom/xrspace.rs')
-rw-r--r-- | components/script/dom/xrspace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xrspace.rs b/components/script/dom/xrspace.rs index 29d81fa6afe..652a4345ce2 100644 --- a/components/script/dom/xrspace.rs +++ b/components/script/dom/xrspace.rs @@ -68,7 +68,7 @@ impl XRSpace { /// with other spaces pub fn get_pose(&self, base_pose: &Frame) -> Option<ApiPose> { if let Some(reference) = self.downcast::<XRReferenceSpace>() { - Some(reference.get_pose(base_pose)) + reference.get_pose(base_pose) } else if let Some(source) = self.input_source.get() { // XXXManishearth we should be able to request frame information // for inputs when necessary instead of always loading it |