Skip to content

Commit c534c1f

Browse files
fixed return value when checking vizualizer
1 parent 56abe27 commit c534c1f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Assets/MixedRealityToolkit/_Core/Inspectors/Profiles/MixedRealityControllerVisualizationProfileInspector.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,10 @@ private bool CheckVisualizer(GameObject modelPrefab)
257257
thisProfile.ControllerVisualizationType.Type != null)
258258
{
259259
modelPrefab.AddComponent(thisProfile.ControllerVisualizationType.Type);
260+
return true;
260261
}
261-
else
262-
{
263-
Debug.LogError("No controller visualization type specified!");
264-
}
262+
263+
Debug.LogError("No controller visualization type specified!");
265264
}
266265
else if (componentList.Length == 1)
267266
{

0 commit comments

Comments
 (0)