From: daid Date: Tue, 18 Feb 2014 10:19:38 +0000 (+0100) Subject: Fix a layer thickness of 0 X-Git-Tag: 14.02-RC2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b0f8eab5aa6edaf8c2d0387f7551a19cc8c11c4c;p=cura.git Fix a layer thickness of 0 --- diff --git a/Cura/util/gcodeInterpreter.py b/Cura/util/gcodeInterpreter.py index 45f65c0f..ad399d70 100644 --- a/Cura/util/gcodeInterpreter.py +++ b/Cura/util/gcodeInterpreter.py @@ -18,6 +18,8 @@ def gcodePath(newType, pathType, layerThickness, startPoint): """ Build a gcodePath object. This used to be objects, however, this code is timing sensitive and dictionaries proved to be faster. """ + if layerThickness <= 0.0: + layerThickness = 0.01 return {'type': newType, 'pathType': pathType, 'layerThickness': layerThickness,