Fix parts.disc()

This commit is contained in:
Florian Festi 2016-07-24 22:28:27 +02:00
parent 21948ade3b
commit 354063068a
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class Parts:
return getattr(self.boxes, name)
def disc(self, diameter, callback=None, move=""):
size = diameter+2*spacing
size = diameter+2*self.boxes.spacing
r = diameter/2.0
if self.move(size, size, move, before=True):
return
@ -36,7 +36,7 @@ class Parts:
self.moveTo(r+self.burn,0, 90)
self.corner(360, r)
self.boxes.ctx.restore()
self.move(size, size, move, before=True)
self.move(size, size, move)
def waivyKnob(self, diameter, n=20, angle=45, callback=None, move=""):
size = diameter+pi*diameter/n+2*self.boxes.spacing