File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -577,6 +577,8 @@ public Vector3 GetPointerGrabPoint(uint pointerId)
577
577
public virtual void OnPointerDown ( MixedRealityPointerEventData eventData )
578
578
{
579
579
if ( eventData . used ||
580
+ eventData . Pointer == null ||
581
+ eventData . Pointer . Result == null ||
580
582
( ! allowFarManipulation && eventData . Pointer as IMixedRealityNearPointer == null ) )
581
583
{
582
584
return ;
Original file line number Diff line number Diff line change @@ -183,6 +183,11 @@ private void OnEnable()
183
183
// Begin the follow coroutine when enabled.
184
184
AutoFollowAtDistance = autoFollowAtDistance ;
185
185
}
186
+
187
+ private void OnDisable ( )
188
+ {
189
+ autoFollowDistanceCheck = null ;
190
+ }
186
191
187
192
#endregion MonoBehaviour Implementation
188
193
You can’t perform that action at this time.
0 commit comments