mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 17:06:29 +00:00
black .
This commit is contained in:
@@ -358,9 +358,7 @@ class Snap(bonsai.core.tool.Snap):
|
|||||||
# Wireframes
|
# Wireframes
|
||||||
# For wireframe we have to get all the objects so we can further calculate edge intersection
|
# For wireframe we have to get all the objects so we can further calculate edge intersection
|
||||||
for snap_obj in objs_to_raycast:
|
for snap_obj in objs_to_raycast:
|
||||||
if snap_obj.type in {"EMPTY", "CURVE"} or (
|
if snap_obj.type in {"EMPTY", "CURVE"} or (snap_obj.type == "MESH" and len(snap_obj.data.polygons) == 0):
|
||||||
snap_obj.type == "MESH" and len(snap_obj.data.polygons) == 0
|
|
||||||
):
|
|
||||||
snap_points = tool.Raycast.ray_cast_by_proximity(context, event, snap_obj)
|
snap_points = tool.Raycast.ray_cast_by_proximity(context, event, snap_obj)
|
||||||
if snap_points:
|
if snap_points:
|
||||||
for point in snap_points:
|
for point in snap_points:
|
||||||
|
|||||||
Reference in New Issue
Block a user