From: daid Date: Wed, 28 Jan 2015 08:40:41 +0000 (+0100) Subject: When other print speeds are set to 0 then use the main print speed in the volume... X-Git-Tag: 15.01~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7146932ee3686a857d2438e286e33a5b061ecd56;p=cura.git When other print speeds are set to 0 then use the main print speed in the volume calculations. --- diff --git a/Cura/util/validators.py b/Cura/util/validators.py index be0c0525..c72c4364 100644 --- a/Cura/util/validators.py +++ b/Cura/util/validators.py @@ -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