Skip to content

Commit 3ba262c

Browse files
committed
Update a comment and use enum for clarity
1 parent a4d81c2 commit 3ba262c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MRTK/Core/Inspectors/Profiles/MixedRealityControllerVisualizationProfileInspector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private void RenderControllerList(SerializedProperty controllerList)
214214

215215
using (new EditorGUILayout.HorizontalScope())
216216
{
217-
EditorGUILayout.LabelField($"{mixedRealityControllerMappingDescription.stringValue} {((Handedness)mixedRealityControllerHandedness.intValue).ToString().ToProperCase()} Hand{(mixedRealityControllerHandedness.intValue == 3 ? "s" : "")}", EditorStyles.boldLabel);
217+
EditorGUILayout.LabelField($"{mixedRealityControllerMappingDescription.stringValue} {((Handedness)mixedRealityControllerHandedness.intValue).ToString().ToProperCase()} Hand{(mixedRealityControllerHandedness.intValue == (int)(Handedness.Both) ? "s" : "")}", EditorStyles.boldLabel);
218218

219219
if (GUILayout.Button(ControllerMinusButtonContent, EditorStyles.miniButtonRight, GUILayout.Width(24f)))
220220
{
@@ -242,7 +242,7 @@ private void RenderControllerList(SerializedProperty controllerList)
242242

243243
var handednessValue = mixedRealityControllerHandedness.intValue - 1;
244244

245-
// Reset in case it was set to something other than left or right.
245+
// Reset in case it was set to something other than left, right, or both.
246246
if (handednessValue < 0 || handednessValue > 2) { handednessValue = 0; }
247247

248248
EditorGUI.BeginChangeCheck();

0 commit comments

Comments
 (0)