mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix orientation getter in XRRigidTransform
This commit is contained in:
parent
0756923e52
commit
f17f066495
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ impl XRRigidTransformMethods for XRRigidTransform {
|
|||
}
|
||||
// https://immersive-web.github.io/webxr/#dom-xrrigidtransform-orientation
|
||||
fn Orientation(&self) -> DomRoot<DOMPointReadOnly> {
|
||||
self.position.or_init(|| {
|
||||
self.orientation.or_init(|| {
|
||||
let r = &self.transform.rotation;
|
||||
DOMPointReadOnly::new(&self.global(), r.i, r.j, r.k, r.r)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue