Rename "Edge-Intersection" to "Edge Intersection"

This commit is contained in:
Bruno Perdigão
2025-01-20 10:48:34 -03:00
parent b509374c27
commit 9e81a3da17
2 changed files with 3 additions and 3 deletions
@@ -579,7 +579,7 @@ class PolylineDecorator:
padding = 8
verts = []
edges = []
if snap_prop.snap_type in ["Edge", "Edge-Intersection", "Vertex"]:
if snap_prop.snap_type in ["Edge", "Edge Intersection", "Vertex"]:
p1 = (coords[0] - padding, coords[1] + padding)
p2 = (coords[0] + padding, coords[1] + padding)
p3 = (coords[0] + padding, coords[1] - padding)
@@ -587,7 +587,7 @@ class PolylineDecorator:
verts = [p1, p2, p3, p4]
if snap_prop.snap_type == "Edge":
edges = [[0, 1], [1, 3], [3, 2], [2, 0]]
elif snap_prop.snap_type == "Edge-Intersection":
elif snap_prop.snap_type == "Edge Intersection":
edges = [[0, 2], [1, 3]]
else:
edges = [[0, 1], [1, 2], [2, 3], [3, 0]]
+1 -1
View File
@@ -548,7 +548,7 @@ class Snap(bonsai.core.tool.Snap):
if tool.Cad.are_vectors_equal(e1["point"], e2["point"], tolerance=0.1):
intersection = tool.Cad.intersect_edges_v2(e1["edge_verts"], e2["edge_verts"])
if intersection[1]:
snapping_points.insert(0, (intersection[1], "Edge-Intersection", None))
snapping_points.insert(0, (intersection[1], "Edge Intersection", None))
# Make Axis first priority
if tool_state.lock_axis or tool_state.axis_method in {"X", "Y", "Z"}: