From fcc3061746d890ef5a3b50ee8d86f0564b464f59 Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Tue, 11 Mar 2025 15:57:37 +0100 Subject: [PATCH] Draft: Fix error in #20118 The code in #20118 would fail if only Near snap was active. --- src/Mod/Draft/draftguitools/gui_snapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftguitools/gui_snapper.py b/src/Mod/Draft/draftguitools/gui_snapper.py index 741e6466bc..97fda966fc 100644 --- a/src/Mod/Draft/draftguitools/gui_snapper.py +++ b/src/Mod/Draft/draftguitools/gui_snapper.py @@ -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()