chiark / gitweb /
When other print speeds are set to 0 then use the main print speed in the volume...
authordaid <daid303@gmail.com>
Wed, 28 Jan 2015 08:40:41 +0000 (09:40 +0100)
committerdaid <daid303@gmail.com>
Wed, 28 Jan 2015 08:40:41 +0000 (09:40 +0100)
Cura/util/validators.py

index be0c0525b0054e15900d3a2bd448ccdb4ce5ab00..c72c4364632640f71403a683e9e636281ed5546e 100644 (file)
@@ -165,6 +165,8 @@ class printSpeedValidator(object):
                        nozzleSize = profile.getProfileSettingFloat('nozzle_size')
                        layerHeight = profile.getProfileSettingFloat('layer_height')
                        printSpeed = float(eval(self.setting.getValue().replace(',','.'), {}, {}))
+                       if printSpeed == 0.0:
+                               printSpeed = profile.getProfileSettingFloat('print_speed')
                        
                        printVolumePerMM = layerHeight * nozzleSize
                        printVolumePerSecond = printVolumePerMM * printSpeed