pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

Error in mesh.py when parsing a mesh

Open kapsl opened this issue 4 years ago • 1 comments

Line 286 if mesh.visual.uv is not None: leads to problems, for my mesh it was []

it works, when changing it to

if mesh.visual.uv is not None and len(mesh.visual.uv) != 0:

kapsl avatar Mar 16 '21 11:03 kapsl

I have the same problem, and also use this as a fix. Could you make a pull request? Thank you! Some meshes just give empty uv but not None. in file: pyrender/mesh.py

if mesh.visual.uv is not None and len(mesh.visual.uv) != 0:

lianghongzhuo avatar Apr 22 '21 20:04 lianghongzhuo