Fixed logic error in path selection drill gate.

This commit is contained in:
Markus Lampert
2022-08-06 17:06:05 -07:00
parent ffe0961853
commit 38e34758c7

View File

@@ -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)