Skip to content

Commit

Permalink
Normalize quaternions
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Aug 24, 2023
1 parent 3582a55 commit 6b0a918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/re_types/src/datatypes/transform3d_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl From<Transform3D> for glam::Affine3A {
from_parent: _,
}) => glam::Affine3A::from_scale_rotation_translation(
scale.map_or(glam::Vec3::ONE, |s| s.into()),
rotation.map_or(glam::Quat::IDENTITY, |q| q.into()),
rotation.map_or(glam::Quat::IDENTITY, |q| glam::Quat::from(q).normalize()),
translation.map_or(glam::Vec3::ZERO, |v| v.into()),
),
}
Expand Down

0 comments on commit 6b0a918

Please sign in to comment.