Commit bc5877cf authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup in gcodeplater

parent 2734d2ec
......@@ -77,12 +77,12 @@ class GcodePlater(Plater):
# Initial implementation should just print the objects sequentially,
# but the end goal is to have a clean per-layer merge
def export_to(self, name):
models = self.models.values()
last_real_position = None
# Sort models by Z max to print smaller objects first
models.sort(key = lambda x: x.dims[-1])
with open(name, "w") as f:
models = self.models.values()
last_real_position = None
# Sort models by Z max to print smaller objects first
models.sort(key = lambda x: x.dims[-1])
for model in models:
for model_i, model in enumerate(models):
r = model.rot # no rotation support for now
if r != 0:
print _("Warning: no rotation support for now, "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment