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

Commit

Permalink
no longer crashing for issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Newbury committed Apr 16, 2021
1 parent bdd5bef commit 242e3bb
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 242e3bb

Please sign in to comment.