Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from rhys-newbury/master
Browse files Browse the repository at this point in the history
no longer crashing for issue #12
  • Loading branch information
wx405557858 authored Apr 26, 2021
2 parents c283c9f + 242e3bb commit a93a065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tacto/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _generate_gel_trimesh(self):
X0, Y0, Z0 = origin[0], origin[1], origin[2]
W, H = g.width, g.height

if g.mesh is not None:
if hasattr(g, "mesh") and g.mesh is not None:
gel_trimesh = trimesh.load(g.mesh)

# scale up for clearer indentation
Expand Down

0 comments on commit a93a065

Please sign in to comment.