Skip to content

Commit 218bf59

Browse files
Merge pull request #585 from chadbramwell/fix/cursorTargetMod
bugfix for Cursor: TargetedCursorModifier should've been nulled
2 parents 681c719 + 197f239 commit 218bf59

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
@@ -294,6 +294,7 @@ protected virtual void UpdateCursorTransform()
294294
if (TargetedObject == null)
295295
{
296296
this.TargetedObject = null;
297+
this.TargetedCursorModifier = null;
297298
targetPosition = gazeManager.GazeOrigin + gazeManager.GazeNormal * DefaultCursorDistance;
298299
targetRotation = lookForward.magnitude > 0 ? Quaternion.LookRotation(lookForward, Vector3.up) : transform.rotation;
299300
}

0 commit comments

Comments
 (0)