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:
parent
3c3241a803
commit
cc153ec930
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user