chiark / gitweb /
Fix https://github.com/Ultimaker/CuraEngine/issues/140
authordaid <daid303@gmail.com>
Mon, 24 Nov 2014 06:31:43 +0000 (07:31 +0100)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Thu, 15 Jan 2015 18:38:21 +0000 (13:38 -0500)
Cura/util/profile.py

index 72a93accd81cce5923182b5c7fd6635055ee09aa..6bbf197ebebedcfc0664ea3886f112190f725963 100644 (file)
@@ -1108,7 +1108,7 @@ def calculateSolidLayerCount():
        solidThickness = getProfileSettingFloat('solid_layer_thickness')
        if layerHeight == 0.0:
                return 1
-       return int(math.ceil(solidThickness / (layerHeight - 0.0001)))
+       return int(math.ceil((solidThickness - 0.0001) / layerHeight))
 
 def calculateObjectSizeOffsets():
        size = 0.0