mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 19:56:03 +08:00
Fixed crash on minimal layer time of zero. Fixed #84
This commit is contained in:
parent
11d9022741
commit
25c753fffa
@ -223,6 +223,8 @@ class CoolSkein:
|
||||
|
||||
def addCoolTemperature(self, remainingOrbitTime):
|
||||
'Parse a gcode line and add it to the cool skein.'
|
||||
if self.repository.minimumLayerTime.value < 0.0001:
|
||||
return
|
||||
layerCool = self.repository.maximumCool.value * remainingOrbitTime / self.repository.minimumLayerTime.value
|
||||
if self.isBridgeLayer:
|
||||
layerCool = max(self.repository.bridgeCool.value, layerCool)
|
||||
|
Loading…
x
Reference in New Issue
Block a user