Fix bedbolts

BedBoltSettings need to become a subclass of Settings instead of a list
of values at some point.
This commit is contained in:
Florian Festi 2017-09-13 11:37:03 +02:00
parent b623008ea3
commit b7f877eacd
1 changed files with 3 additions and 1 deletions

View File

@ -588,10 +588,12 @@ class FingerJointEdge(BaseEdge, FingerJointBase):
l1,l2 = self.fingerLength(self.settings.angle)
h = l1-l2
d = (bedBoltSettings or self.bedBoltSettings)[0]
for i in range(fingers):
if i != 0:
if not positive and bedBolts and bedBolts.drawBolt(i):
self.hole(0.5 * space,
self.hole(0.5 * s,
0.5 * self.settings.thickness, 0.5 * d)
if positive and bedBolts and bedBolts.drawBolt(i):