Skip to content

Commit

Permalink
Merge pull request #5 from ami-iit/fix-no-visual
Browse files Browse the repository at this point in the history
Skip importing models with no visuals
  • Loading branch information
Giulero authored May 27, 2024
2 parents 266aa43 + 19208f3 commit 33c070a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blend_my_bot/model_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def import_links(
)
for link_id in range(model_geometry.getNrOfLinks()):
link_name = model_geometry.getLinkName(link_id)
if visuals[link_id] == (): # no visual
continue
link_visual = visuals[link_id][0]
if link_visual.isExternalMesh():
mesh_path = (
Expand Down

0 comments on commit 33c070a

Please sign in to comment.