Skip to content

Commit 197f239

Browse files
author
Chad Bramwell
committed
bugfix for Cursor: TargetedCursorModifier is dependent on TargetedObject and therefore should be cleared out whenever TargetedObject is cleared out
1 parent 3bf1ef2 commit 197f239

File tree

1 file changed

+1
-0
lines changed
  • Assets/HoloToolkit/Input/Scripts/Cursor

1 file changed

+1
-0
lines changed

Assets/HoloToolkit/Input/Scripts/Cursor/Cursor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ protected virtual void UpdateCursorTransform()
285285
if (TargetedObject == null)
286286
{
287287
this.TargetedObject = null;
288+
this.TargetedCursorModifier = null;
288289
targetPosition = gazeManager.GazeOrigin + gazeManager.GazeNormal * DefaultCursorDistance;
289290
targetRotation = lookForward.magnitude > 0 ? Quaternion.LookRotation(lookForward, Vector3.up) : transform.rotation;
290291
}

0 commit comments

Comments
 (0)