Avoid modifying original uv in texelToLocalMatrix

This commit is contained in:
Nestorboy 2024-10-31 17:29:44 +01:00
parent d3e993c98f
commit e935ab9b51

View File

@ -310,6 +310,7 @@ class MeshFace extends Face {
let vertexb = this.mesh.vertices[vert_b];
let vertexc = this.mesh.vertices[vert_c];
uv = [...uv];
if (typeof truncateOffset !== "undefined") {
uv[0] = Math.round(uv[0] + truncateOffset) - truncateOffset;
uv[1] = Math.round(uv[1] + truncateOffset) - truncateOffset;