Merge branch 'master' into remove-dead-code

This commit is contained in:
agren
2022-08-26 20:29:39 +02:00
committed by GitHub
2601 changed files with 48956 additions and 45649 deletions

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)