chiark / gitweb /
Fix a layer thickness of 0
authordaid <daid303@gmail.com>
Tue, 18 Feb 2014 10:19:38 +0000 (11:19 +0100)
committerdaid <daid303@gmail.com>
Tue, 18 Feb 2014 10:19:38 +0000 (11:19 +0100)
Cura/util/gcodeInterpreter.py

index 45f65c0f4f88a0e21160a58c71e6c44412e4594d..ad399d702f705c8fe12fd0a18e20a7f3da11634c 100644 (file)
@@ -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,