From a8214da94344cf178c5287d15e94caf0639c7d07 Mon Sep 17 00:00:00 2001 From: Lajos Meszaros Date: Thu, 23 May 2024 19:01:05 +0200 Subject: [PATCH] fix(scaleUV): flip operator for negative numbers in normalizeUV --- src/tools/mesh/scaleUV.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/mesh/scaleUV.ts b/src/tools/mesh/scaleUV.ts index a0d2c176..1988e01f 100644 --- a/src/tools/mesh/scaleUV.ts +++ b/src/tools/mesh/scaleUV.ts @@ -33,13 +33,13 @@ export const normalizeUV = (geometry: BufferGeometry) => { let v = uv.getY(idx) if (u < 0) { - u = 1 - (u % 1) + u = 1 + (u % 1) } else if (u > 1) { u = u % 1 } if (v < 0) { - v = 1 - (v % 1) + v = 1 + (v % 1) } else if (v > 1) { v = v % 1 }