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 François
parent 3c3241a803
commit cc153ec930

View File

@ -319,7 +319,7 @@ impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> {
SphereBuilder {
gizmos: self,
position,
rotation,
rotation: rotation.normalize(),
radius,
color,
circle_segments: DEFAULT_CIRCLE_SEGMENTS,