Skip to content

Commit

Permalink
Skip importing models with no visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulero committed May 24, 2024
1 parent 266aa43 commit 19208f3
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 19208f3

Please sign in to comment.