Skip to content

Commit

Permalink
Fix gcode plater export
Browse files Browse the repository at this point in the history
  • Loading branch information
kliment committed Mar 24, 2018
1 parent f8aeafd commit 2ea0835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printrun/gcodeplater.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def export_combined(self, name):
def add_offset(layer):
return layer.z + model.offsets[2] if layer.z is not None else layer.z
alllayers += [(add_offset(layer), model_i, layer_i)
for (layer_i, layer) in enumerate(model.gcode.all_layers) if layer]
for (layer_i, layer) in enumerate(model.gcode.all_layers) if add_offset(layer) is not None]
alllayers.sort()
laste = [0] * len(models)
lasttool = [0] * len(models)
Expand Down

0 comments on commit 2ea0835

Please sign in to comment.