diff --git a/src/model.ts b/src/model.ts index f0ed4bf..508a3a6 100644 --- a/src/model.ts +++ b/src/model.ts @@ -49,12 +49,12 @@ function setUVs( // Iterate over the arrays and copy the data to uvData let index = 0; for (const uvArray of [uvRight, uvLeft, uvTop, uvBottom, uvFront, uvBack]) { - for (const uv of uvArray) { - // @ts-ignore - uvData[index++] = uv.x; - // @ts-ignore - uvData[index++] = uv.y; - } + for (const uv of uvArray) { + // @ts-ignore + uvData[index++] = uv.x; + // @ts-ignore + uvData[index++] = uv.y; + } } uvAttr.needsUpdate = true; }