Draft: Fix error in #20118
The code in #20118 would fail if only Near snap was active.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user