From 19208f3c88d010257ec2e7368eb4e124e24cfd1f Mon Sep 17 00:00:00 2001 From: giulero Date: Fri, 24 May 2024 13:19:20 +0200 Subject: [PATCH] Skip importing models with no visuals --- src/blend_my_bot/model_importer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blend_my_bot/model_importer.py b/src/blend_my_bot/model_importer.py index b57e81e..f3c051b 100644 --- a/src/blend_my_bot/model_importer.py +++ b/src/blend_my_bot/model_importer.py @@ -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 = (