diff --git a/src/bonsai/bonsai/tool/raycast.py b/src/bonsai/bonsai/tool/raycast.py index 6a7af3eba5..185470827d 100644 --- a/src/bonsai/bonsai/tool/raycast.py +++ b/src/bonsai/bonsai/tool/raycast.py @@ -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()