Draft: Fix error in #20118

The code in #20118 would fail if only Near snap was active.
This commit is contained in:
Roy-043
2025-03-11 15:57:37 +01:00
parent 61eedbddc4
commit fcc3061746

View File

@@ -491,7 +491,9 @@ class Snapper:
shortest_all = dist
winner_all = snap
if shortest_not_near == shortest_all:
if winner_not_near is None:
winner = winner_all
elif shortest_not_near == shortest_all:
winner = winner_all
else:
view = Draft.get3DView()