Skip to content

Commit bdbcfcf

Browse files
committed
PR nits
1 parent 99a36f5 commit bdbcfcf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/Visuals/ScaleHandles.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected Quaternion GetRotationRealignment(int handleIndex, bool isFlattened)
200200
switch(currentFlattenAxis)
201201
{
202202
case FlattenModeType.FlattenAuto:
203-
Debug.LogError("ScaleHandles should never receive FlattenAuto. BoundsControl should pass actualFlattenAxis");
203+
Debug.LogError("ScaleHandles should never receive FlattenAuto. BoundsControl should pass ActualFlattenAxis");
204204
break;
205205
case FlattenModeType.FlattenX:
206206
axis = Vector3.right;

Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/Visuals/VisualUtils.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ static internal Vector3 GetFaceCenterPosition(int faceIndex, ref Vector3[] corne
262262
/// <returns>Flattened indices.</returns>
263263
internal static List<int> GetFlattenedIndices(FlattenModeType flattenAxis, CardinalAxisType[] axisArray)
264264
{
265+
Debug.Assert(flattenAxis != FlattenModeType.FlattenAuto,
266+
"FlattenAuto passed to GetFlattenedIndices. Resolve FlattenAuto into an actual axis before calling.");
267+
265268
List<int> flattenedIndices = new List<int>();
266269
for (int i = 0; i < axisArray.Length; ++i)
267270
{

0 commit comments

Comments
 (0)