From 38e34758c7e5d1c13495414bdbb34ebd89161681 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sat, 6 Aug 2022 17:06:05 -0700 Subject: [PATCH] Fixed logic error in path selection drill gate. --- src/Mod/Path/PathScripts/PathSelection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathSelection.py b/src/Mod/Path/PathScripts/PathSelection.py index 37bec946fe..9cd0cc2d11 100644 --- a/src/Mod/Path/PathScripts/PathSelection.py +++ b/src/Mod/Path/PathScripts/PathSelection.py @@ -124,7 +124,7 @@ class CHAMFERGate(PathBaseGate): class DRILLGate(PathBaseGate): def allow(self, doc, obj, sub): PathLog.debug("obj: {} sub: {}".format(obj, sub)) - if not hasattr(obj, "Shape") and sub: + if not hasattr(obj, "Shape"): return False shape = obj.Shape subobj = shape.getElement(sub)