Skip to content

Commit 70b612d

Browse files
Merge pull request #3015 from keveleigh/FocusBug
Fix bug in ResetFocusedObjects where the previous target stayed the same
2 parents 790c92a + 5042321 commit 70b612d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Assets/MixedRealityToolkit-SDK/Features/Input/FocusProvider.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ public void UpdateHit()
187187

188188
public void ResetFocusedObjects(bool clearPreviousObject = true)
189189
{
190-
if (clearPreviousObject)
191-
{
192-
PreviousPointerTarget = null;
193-
}
190+
PreviousPointerTarget = clearPreviousObject ? null : CurrentPointerTarget;
194191

195192
focusDetails.Point = Details.Point;
196193
focusDetails.Normal = Details.Normal;

0 commit comments

Comments
 (0)