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 {
|
SphereBuilder {
|
||||||
gizmos: self,
|
gizmos: self,
|
||||||
position,
|
position,
|
||||||
rotation,
|
rotation: rotation.normalize(),
|
||||||
radius,
|
radius,
|
||||||
color,
|
color,
|
||||||
circle_segments: DEFAULT_CIRCLE_SEGMENTS,
|
circle_segments: DEFAULT_CIRCLE_SEGMENTS,
|
||||||
|
Loading…
Reference in New Issue
Block a user