Skip to content

Commit 808c439

Browse files
authored
Merge pull request #10624 from keveleigh/2.8.1-cherry-picks
2.8.1 cherry-picks from main
2 parents fcdf493 + a1d4131 commit 808c439

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Assets/MRTK/SDK/Features/Input/Handlers/ObjectManipulator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ public Vector3 GetPointerGrabPoint(uint pointerId)
577577
public virtual void OnPointerDown(MixedRealityPointerEventData eventData)
578578
{
579579
if (eventData.used ||
580+
eventData.Pointer == null ||
581+
eventData.Pointer.Result == null ||
580582
(!allowFarManipulation && eventData.Pointer as IMixedRealityNearPointer == null))
581583
{
582584
return;

Assets/MRTK/SDK/Features/UX/Scripts/Slate/FollowMeToggle.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ private void OnEnable()
183183
// Begin the follow coroutine when enabled.
184184
AutoFollowAtDistance = autoFollowAtDistance;
185185
}
186+
187+
private void OnDisable()
188+
{
189+
autoFollowDistanceCheck = null;
190+
}
186191

187192
#endregion MonoBehaviour Implementation
188193

0 commit comments

Comments
 (0)