From ac3d6be70db4a457a6790650526a78c4526d29ec Mon Sep 17 00:00:00 2001 From: chompaa Date: Fri, 8 Mar 2024 05:35:50 +0000 Subject: [PATCH] Fix panic --- crates/bevy_gizmos/src/gizmos.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_gizmos/src/gizmos.rs b/crates/bevy_gizmos/src/gizmos.rs index eaef65d54e95f..1bd91741a5ed7 100644 --- a/crates/bevy_gizmos/src/gizmos.rs +++ b/crates/bevy_gizmos/src/gizmos.rs @@ -337,7 +337,7 @@ impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> { SphereBuilder { gizmos: self, position, - rotation, + rotation: rotation.normalize(), radius, color: color.into(), circle_segments: DEFAULT_CIRCLE_SEGMENTS,