Skip to content

Commit ced23c3

Browse files
committed
Fixing local rotation issue with recreating visuals on prefab update
1 parent f75a094 commit ced23c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/Visuals/PerAxisHandles.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ private Bounds CreateVisual(int handleIndex, GameObject parent)
286286
handleVisual.transform.parent = parent.transform;
287287
handleVisual.transform.localScale = new Vector3(invScale, invScale, invScale);
288288
handleVisual.transform.localPosition = Vector3.zero;
289+
handleVisual.transform.localRotation = Quaternion.identity;
289290

290291
Quaternion realignment = GetRotationRealignment(handleIndex);
291292
parent.transform.localRotation = realignment;

0 commit comments

Comments
 (0)