Skip to content

Commit cadce6f

Browse files
committed
Fix min and max setting
1 parent 90c99ec commit cadce6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ObjObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,17 @@ private static Face FindSuperTriangle(Vertex[] vertices)
234234
{
235235
if (v.X < minX)
236236
minX = v.X;
237-
else if (v.X > maxX)
237+
if (v.X > maxX)
238238
maxX = v.X;
239239

240240
if (v.Y < minY)
241241
minY = v.Y;
242-
else if (v.Y > maxY)
242+
if (v.Y > maxY)
243243
maxY = v.Y;
244244

245245
if (v.Z < minZ)
246246
minZ = v.Z;
247-
else if (v.Z > maxZ)
247+
if (v.Z > maxZ)
248248
maxZ = v.Z;
249249
}
250250

0 commit comments

Comments
 (0)