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
ffb1bc6532
commit
c75d145869
@ -337,7 +337,7 @@ impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> {
|
|||||||
SphereBuilder {
|
SphereBuilder {
|
||||||
gizmos: self,
|
gizmos: self,
|
||||||
position,
|
position,
|
||||||
rotation,
|
rotation: rotation.normalize(),
|
||||||
radius,
|
radius,
|
||||||
color: color.into(),
|
color: color.into(),
|
||||||
circle_segments: DEFAULT_CIRCLE_SEGMENTS,
|
circle_segments: DEFAULT_CIRCLE_SEGMENTS,
|
||||||
|
Loading…
Reference in New Issue
Block a user