RackEdge: Fix length

which was broken by the modulus fix in 6238903237
This commit is contained in:
Florian Festi 2023-03-27 21:15:03 +02:00
parent e98f369a27
commit 1abd1bfaed
1 changed files with 2 additions and 2 deletions

View File

@ -2455,8 +2455,8 @@ class RackEdge(BaseEdge):
params = self.settings.values.copy()
params["draw_rack"] = True
params["rack_base_height"] = -1E-36
params["rack_teeth_length"] = int(length // params["dimension"])
params["rack_base_tab"] = (length - (params["rack_teeth_length"]) * params["dimension"]) / 2.0
params["rack_teeth_length"] = int(length // (params["dimension"] * math.pi))
params["rack_base_tab"] = (length - (params["rack_teeth_length"]) * params["dimension"] * math.pi) / 2.0
s_tmp = self.boxes.spacing
self.boxes.spacing = 0
self.moveTo(length, 0, 180)