Skip to content

Commit 575a694

Browse files
moved profile check after forloop has completed
1 parent ba63ffc commit 575a694

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Assets/MixedRealityToolkit/_Core/Devices/BaseController.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ public void SetupConfiguration(Type controllerType)
107107
profileFound = true;
108108
}
109109

110-
if (!profileFound)
111-
{
112-
Debug.LogError($"No controller profile found for type {controllerType}, please ensure all controllers are defined in the configured MixedRealityControllerConfigurationProfile.");
113-
return;
114-
}
115-
116110
// Assign any known interaction mappings.
117111
if (!controllerMappings[i].UseCustomInteractionMappings &&
118112
controllerMappings[i].ControllerType.Type == controllerType &&
@@ -135,6 +129,11 @@ public void SetupConfiguration(Type controllerType)
135129
}
136130
}
137131
}
132+
133+
if (!profileFound)
134+
{
135+
Debug.LogError($"No controller profile found for type {controllerType}, please ensure all controllers are defined in the configured MixedRealityControllerConfigurationProfile.");
136+
}
138137
}
139138
}
140139

0 commit comments

Comments
 (0)