mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
m/space: Normalize orientation when returning result
This commit is contained in:
parent
09566cf5fd
commit
ecbde55752
|
@ -296,5 +296,8 @@ m_space_graph_resolve(const struct xrt_space_graph *xsg,
|
||||||
(void)dump_graph;
|
(void)dump_graph;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Ensure no errors has crept in.
|
||||||
|
math_quat_normalize(&r.pose.orientation);
|
||||||
|
|
||||||
*out_relation = r;
|
*out_relation = r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue