From 7146932ee3686a857d2438e286e33a5b061ecd56 Mon Sep 17 00:00:00 2001 From: daid Date: Wed, 28 Jan 2015 09:40:41 +0100 Subject: [PATCH] When other print speeds are set to 0 then use the main print speed in the volume calculations. --- Cura/util/validators.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2