From 4c221363a697e18d47a9833aaa47717585bdb311 Mon Sep 17 00:00:00 2001 From: Sonic The <109289447+SonicTheHedgeHog64@users.noreply.github.com> Date: Wed, 27 Nov 2024 01:15:01 -0600 Subject: [PATCH] why does this exist? --- fast64_internal/f3d/f3d_writer.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/fast64_internal/f3d/f3d_writer.py b/fast64_internal/f3d/f3d_writer.py index c73a6e50d..bca7f94ac 100644 --- a/fast64_internal/f3d/f3d_writer.py +++ b/fast64_internal/f3d/f3d_writer.py @@ -268,27 +268,6 @@ def fixLargeUVs(obj): minUV, maxUV = findUVBounds(polygon, uv_data) uvOffset = [0, 0] - for i in range(2): - # Move any UVs close to or straddling edge - minDiff = (-cellSize[i] + 2) - minUV[i] - if minDiff > 0: - applyOffset(minUV, maxUV, uvOffset, ceil(minDiff / UVinterval[i]) * UVinterval[i], i) - - maxDiff = maxUV[i] - (cellSize[i] - 1) - if maxDiff > 0: - applyOffset(minUV, maxUV, uvOffset, -ceil(maxDiff / UVinterval[i]) * UVinterval[i], i) - - for loopIndex in polygon.loop_indices: - newUV = (uv_data[loopIndex].uv[0] + uvOffset[0], uv_data[loopIndex].uv[1] + uvOffset[1]) - uv_data[loopIndex].uv = newUV - - -def applyOffset(minUV, maxUV, uvOffset, offset, i): - minUV[i] += offset - maxUV[i] += offset - uvOffset[i] += offset - - def findUVBounds(polygon, uv_data): minUV = [None, None] maxUV = [None, None]