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)