Skip to content

Commit b1bf35a

Browse files
only update source pose if flag is set
1 parent c1d2404 commit b1bf35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit-SDK/Features/Input/Handlers/ControllerPoseSynchronizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public virtual void OnSourcePoseChanged(SourcePoseEventData eventData)
134134
TrackingState = eventData.TrackingState;
135135
}
136136

137-
if (TrackingState == TrackingState.Tracked)
137+
if (UseSourcePoseData && TrackingState == TrackingState.Tracked)
138138
{
139139
transform.localPosition = eventData.MixedRealityPose.Position;
140140
transform.localRotation = eventData.MixedRealityPose.Rotation;

0 commit comments

Comments
 (0)