Improve weight in snapping for "Plane", "Axis" and "Face" type.

This commit is contained in:
Bruno Perdigão
2025-03-12 14:04:08 -03:00
parent 5cc0aa71c7
commit 5df9c45795
+2
View File
@@ -569,6 +569,8 @@ class Snap(bonsai.core.tool.Snap):
snap["distance"] *= weight_factor / 5
if snap["type"] == "Edge Intersection":
snap["distance"] *= weight_factor / 10
if snap["type"] in ["Plane", "Axis", "Face"]:
snap["distance"] = weight_factor / 50
return sorted(snapping_points, key=lambda x: x["distance"])
snaps_by_group = filter_snapping_points_by_group(detected_snaps)