Skip to content

Commit 1e5e6b5

Browse files
committed
Remove the desired texture definition
CURA-12528
1 parent 93d29b1 commit 1e5e6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UM/Mesh/MeshData.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def invertNormals(self) -> None:
409409
new_vertices.append(self._vertices[i + 2])
410410
self._vertices = NumPyUtil.immutableNDArray(new_vertices)
411411

412-
def calculateUnwrappedUVCoordinates(self, desired_texture_resolution: int) -> Optional[tuple[int, int]]:
412+
def calculateUnwrappedUVCoordinates(self) -> Optional[tuple[int, int]]:
413413
"""Create a new set of unwrapped texture coordinates for the mesh."""
414414
# remove_indices = False
415415
if self._indices is None:
@@ -420,7 +420,7 @@ def calculateUnwrappedUVCoordinates(self, desired_texture_resolution: int) -> Op
420420
else:
421421
indices = numpy.array()
422422

423-
self._uvs, texture_width, texture_height = uvula.unwrap(self._vertices, indices, desired_texture_resolution)
423+
self._uvs, texture_width, texture_height = uvula.unwrap(self._vertices, indices)
424424

425425
# if remove_indices:
426426
# self._indices = None

0 commit comments

Comments
 (0)