diff --git a/Cargo.toml b/Cargo.toml index 00606b69e..c97bd9677 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_trackball" -version = "0.4.0" +version = "0.4.1" rust-version = "1.76.0" authors = ["Rouven Spreckels "] edition = "2021" diff --git a/RELEASES.md b/RELEASES.md index d73b12f59..11df3ca9b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,8 @@ +# Version 0.4.1 (2024-03-06) + + * Add missing re-normalization as part of smoothing, thanks to [mo8it](https://github.com/mo8it). + This prevents panics when dependants enable the `glam_assert`/`debug_glam_assert` feature. + # Version 0.4.0 (2024-02-21) * Update Bevy to `0.13`. diff --git a/src/camera.rs b/src/camera.rs index 40658ca5a..1b43faffd 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -133,6 +133,10 @@ pub fn trackball_camera( trackball .old_frame .try_lerp_slerp(&trackball.frame, blend, 0.0) + .map(|mut frame| { + frame.renormalize(); + frame + }) }) .flatten() .unwrap_or(trackball.frame);