Fix resolve error
This commit is contained in:
parent
b971dacd3f
commit
5ff44efbcf
1 changed files with 3 additions and 1 deletions
|
|
@ -63,7 +63,9 @@ class GerberContext(object):
|
|||
self.aperture = d
|
||||
|
||||
def resolve(self, x, y):
|
||||
return x or self.x, y or self.y
|
||||
x = x if x is not None else self.x
|
||||
y = y if y is not None else self.y
|
||||
return x, y
|
||||
|
||||
def define_aperture(self, d, shape, modifiers):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue