Skip to content

Commit

Permalink
big dumb typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexInABox committed Apr 20, 2024
1 parent 8815eaa commit b58650f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions GeometrizeVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ public void Convert()
return;
}

var wichShape = 10; //inital distance from the canvas so that no clipping occurs
var whichShape = 10; //inital distance from the canvas so that no clipping occurs
// Loop through each shape
foreach (var shape in shapeData.shapes)
{
// Now you can access shape properties as expected
if (wichShape == 10)
if (whichShape == 10)
{
createCanvas(shape.data, shape.color);
}
Expand All @@ -85,26 +85,26 @@ public void Convert()
switch (shape.type)
{
case 32:
createCircle(shape.data, shape.color, wichShape);
createCircle(shape.data, shape.color, whichShape);
break;
case 8:
createEllipse(shape.data, shape.color, wichShape);
createEllipse(shape.data, shape.color, whichShape);
break;
case 16:
createRotatedEllipse(shape.data, shape.color, wichShape);
createRotatedEllipse(shape.data, shape.color, whichShape);
break;
case 1:
createCube(shape.data, shape.color, wichShape);
createCube(shape.data, shape.color, whichShape);
break;
case 2:
createRotatedCube(shape.data, shape.color, wichShape);
createRotatedCube(shape.data, shape.color, whichShape);
break;
default:
Debug.Log("Shape Type: " + shape.type + " not supported");
break;
}
}
wichShape++;
whichShape++;
}

//trigger recompilation of all scripts
Expand All @@ -113,7 +113,7 @@ public void Convert()

private Transform canvas;

float globalSizeMultiplier; //the value by wich to multiply so that the objects fit on the canvases new size
float globalSizeMultiplier; //the value by which to multiply so that the objects fit on the canvases new size

void createCanvas(List<int> data, List<int> color)
{
Expand Down

0 comments on commit b58650f

Please sign in to comment.