mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Fix #5277
This commit is contained in:
@@ -193,6 +193,7 @@ class Raycast(bonsai.core.tool.Raycast):
|
|||||||
loc = Vector((0, 0, 0))
|
loc = Vector((0, 0, 0))
|
||||||
|
|
||||||
polyline_data = bpy.context.scene.BIMModelProperties.polyline_point
|
polyline_data = bpy.context.scene.BIMModelProperties.polyline_point
|
||||||
|
polyline_data = polyline_data[: len(polyline_data) - 1] # It doesn't make sense to snap to the last point created
|
||||||
polyline_points = []
|
polyline_points = []
|
||||||
for point_data in polyline_data:
|
for point_data in polyline_data:
|
||||||
point = Vector((point_data.x, point_data.y, point_data.z))
|
point = Vector((point_data.x, point_data.y, point_data.z))
|
||||||
|
|||||||
@@ -70,17 +70,6 @@ class Snap(bonsai.core.tool.Snap):
|
|||||||
|
|
||||||
return snap_point
|
return snap_point
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def get_snap_points_on_polyline(cls):
|
|
||||||
snap_points = {}
|
|
||||||
polyline_data = bpy.context.scene.BIMModelProperties.polyline_point
|
|
||||||
polyline_points = []
|
|
||||||
for point_data in polyline_data:
|
|
||||||
point = Vector((point_data.x, point_data.y, point_data.z))
|
|
||||||
polyline_points.append(point)
|
|
||||||
snap_points.update({tuple(point): "Polyline Point" for point in polyline_points})
|
|
||||||
|
|
||||||
return snap_points
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def select_snap_point(cls, snap_points, hit, threshold):
|
def select_snap_point(cls, snap_points, hit, threshold):
|
||||||
|
|||||||
Reference in New Issue
Block a user