m/space: Normalize orientation when returning result

This commit is contained in:
Jakob Bornecrantz 2020-10-27 16:03:21 +00:00
parent 09566cf5fd
commit ecbde55752

View file

@ -296,5 +296,8 @@ m_space_graph_resolve(const struct xrt_space_graph *xsg,
(void)dump_graph;
#endif
// Ensure no errors has crept in.
math_quat_normalize(&r.pose.orientation);
*out_relation = r;
}