mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-23 16:31:20 +08:00
Avoid modifying original uv in texelToLocalMatrix
This commit is contained in:
parent
d3e993c98f
commit
e935ab9b51
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user