Skip to content

Commit 0ec5414

Browse files
committed
Fix crash when painting on 3MF-loaded model
CURA-12528
1 parent f728acd commit 0ec5414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UM/Mesh/MeshData.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def getColors(self) -> numpy.ndarray:
186186
return self._colors
187187

188188
def hasUVCoordinates(self) -> bool:
189-
return self._uvs is not None
189+
return self._uvs is not None and len(self._uvs) > 0
190190

191191
def getFileName(self) -> Optional[str]:
192192
return self._file_name

0 commit comments

Comments
 (0)