Catch absent geometry in objects not of type EMPTY

This commit is contained in:
William Herald Snyder 2022-09-22 19:31:30 -04:00
parent 5d86a88411
commit d6973e9793
1 changed files with 96 additions and 88 deletions

View File

@ -58,6 +58,8 @@ def model_to_mesh_object(model: Model, scene : Scene, materials_map : Dict[str,
polygon_material_indices = []
if model.geometry:
for segment in model.geometry:
if not validate_segment_geometry(segment):
@ -98,8 +100,6 @@ def model_to_mesh_object(model: Model, scene : Scene, materials_map : Dict[str,
polygon_material_indices += [current_material_index for _ in segment_polygons]
current_material_index += 1
'''
Start building the blender mesh
'''
@ -192,3 +192,11 @@ def model_to_mesh_object(model: Model, scene : Scene, materials_map : Dict[str,