Fixed logic error in path selection drill gate.

This commit is contained in:
Markus Lampert
2022-08-06 17:06:05 -07:00
parent 89e783d708
commit b4f553f7e5

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)