Commit a81f2e34 authored by Guillaume Seguin's avatar Guillaume Seguin

Add some missing field to copy operator in GcodeModel

parent 0b88c534
...@@ -467,7 +467,9 @@ class GcodeModel(Model): ...@@ -467,7 +467,9 @@ class GcodeModel(Model):
copy = GcodeModel() copy = GcodeModel()
for var in ["vertices", "colors", "travels", "indices", for var in ["vertices", "colors", "travels", "indices",
"max_layers", "num_layers_to_draw", "printed_until", "max_layers", "num_layers_to_draw", "printed_until",
"layer_stops", "dims", "only_current"]: "layer_stops", "dims", "only_current",
"count_travel_indices", "count_print_indices",
"count_print_vertices"]:
setattr(copy, var, getattr(self, var)) setattr(copy, var, getattr(self, var))
copy.loaded = True copy.loaded = True
copy.initialized = False copy.initialized = False
......
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