Skip to content

Commit 333180b

Browse files
committed
Fix obsolete constructor
1 parent b7c5157 commit 333180b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/MRTK/Providers/WindowsMixedReality/Shared/WindowsMixedRealityHandMeshProvider.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ public class WindowsMixedRealityHandMeshProvider
3333
private WindowsMixedRealityHandMeshProvider(Handedness handedness) => this.handedness = handedness;
3434

3535
[Obsolete("WindowsMixedRealityHandMeshProvider(IMixedRealityController) is obsolete. Please use either the static Left or Right members and call SetInputSource()")]
36-
public WindowsMixedRealityHandMeshProvider(IMixedRealityController controller) => inputSource = controller.InputSource;
36+
public WindowsMixedRealityHandMeshProvider(IMixedRealityController controller) : this(controller.ControllerHandedness)
37+
{
38+
SetInputSource(controller.InputSource);
39+
}
3740

3841
private readonly Handedness handedness;
3942
private IMixedRealityInputSource inputSource = null;

0 commit comments

Comments
 (0)