mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 20:22:09 +00:00
fix: add support to empty objects
This commit is contained in:
committed by
Bruno Perdigão
parent
d1a3257d55
commit
0cd8c76b8e
@@ -216,6 +216,9 @@ def _get_boundary_features(obj: bpy.types.Object):
|
||||
Pairs of vertex positions for edges that have **no** linked faces
|
||||
(boundary / wire edges), in local space.
|
||||
"""
|
||||
if obj.type == "EMPTY":
|
||||
return [(0.0, 0.0, 0.0)], []
|
||||
|
||||
depsgraph = bpy.context.evaluated_depsgraph_get()
|
||||
eval_obj = obj.evaluated_get(depsgraph)
|
||||
mesh = eval_obj.to_mesh()
|
||||
|
||||
Reference in New Issue
Block a user