Catch absent geometry in objects not of type EMPTY
This commit is contained in:
parent
5d86a88411
commit
d6973e9793
|
@ -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,
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue