Fix gizmos panicking given bad output from GlobalTransform::to_scale_rotation_translation (#12375)

# Objective

Fixes #12360.

## Solution

Normalize the rotation `Quat` in `sphere`.
This commit is contained in:
Antony 2024-03-08 06:20:12 +00:00 committed by GitHub
parent ffb1bc6532
commit c75d145869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,