Skip to content

Commit 2a7922c

Browse files
author
David Kline
authored
Merge pull request #3178 from keveleigh/fix-pointer-registration
Fix overwriting bool in RequestPointers
2 parents 8a36857 + ab5197b commit 2a7922c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Assets/MixedRealityToolkit/_Core/Devices/BaseDeviceManager.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ protected virtual IMixedRealityPointer[] RequestPointers(SystemType controllerTy
4444
{
4545
var pointerProfile = MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.PointerProfile.PointerOptions[i];
4646

47-
if (!useSpecificType)
48-
{
49-
useSpecificType = pointerProfile.ControllerType.Type != null;
50-
}
51-
52-
if ((!useSpecificType || pointerProfile.ControllerType.Type == controllerType.Type) &&
47+
if (((useSpecificType && pointerProfile.ControllerType.Type == controllerType.Type) || (!useSpecificType && pointerProfile.ControllerType.Type == null)) &&
5348
(pointerProfile.Handedness == Handedness.Any || pointerProfile.Handedness == Handedness.Both || pointerProfile.Handedness == controllingHand))
5449
{
5550
var pointerObject = Object.Instantiate(pointerProfile.PointerPrefab);

0 commit comments

Comments
 (0)