mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Support nullable origins and floors
This commit is contained in:
parent
0bace66f70
commit
322463450d
7 changed files with 51 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue