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