Skip to content

Commit

Permalink
Ported fix of solid layer count from Ultimaker/CuraEngine#140
Browse files Browse the repository at this point in the history
Fixes #1692
  • Loading branch information
foosel committed Jan 11, 2017
1 parent 7c74594 commit 071c32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octoprint/plugins/cura/profile.py
Expand Up @@ -831,7 +831,7 @@ def calculate_solid_layer_count(self):
if layer_height == 0.0:
return 1
import math
return int(math.ceil(solid_thickness / (layer_height - 0.0001)))
return int(math.ceil((solid_thickness - 0.0001) / layer_height))

def calculate_minimal_extruder_count(self):
extruder_count = self.get("extruder_amount")
Expand Down

0 comments on commit 071c32f

Please sign in to comment.