Skip to content

Commit a9eab16

Browse files
authored
Merge pull request #182 from kapsl/bugfix_issue#174
Bugfix Issue #174
2 parents dd6dbd8 + 1989284 commit a9eab16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrender/mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _get_trimesh_props(mesh, smooth=False, material=None):
283283
# Process texture colors
284284
if mesh.visual.kind == 'texture':
285285
# Configure UV coordinates
286-
if mesh.visual.uv is not None:
286+
if mesh.visual.uv is not None and len(mesh.visual.uv) != 0:
287287
uv = mesh.visual.uv.copy()
288288
if smooth:
289289
texcoords = uv

0 commit comments

Comments
 (0)