chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a72b24c
)
When other print speeds are set to 0 then use the main print speed in the volume...
author
daid
<daid303@gmail.com>
Wed, 28 Jan 2015 08:40:41 +0000
(09:40 +0100)
committer
daid
<daid303@gmail.com>
Wed, 28 Jan 2015 08:40:41 +0000
(09:40 +0100)
Cura/util/validators.py
patch
|
blob
|
history
diff --git
a/Cura/util/validators.py
b/Cura/util/validators.py
index be0c0525b0054e15900d3a2bd448ccdb4ce5ab00..c72c4364632640f71403a683e9e636281ed5546e 100644
(file)
--- 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