pyrender
pyrender copied to clipboard
Error in mesh.py when parsing a mesh
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:
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: