m/space: Normalize orientation when returning result

This commit is contained in:
Jakob Bornecrantz committed 2020-10-27 16:20:12 +00:00
1 parent 09566cf5fd
commit ecbde55752
1 file changed
+3
+3
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;
}