From b0f8eab5aa6edaf8c2d0387f7551a19cc8c11c4c Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 18 Feb 2014 11:19:38 +0100 Subject: [PATCH] Fix a layer thickness of 0 --- Cura/util/gcodeInterpreter.py | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.30.2