Commit 5acc68d4 authored by Guillaume Seguin's avatar Guillaume Seguin

Update GcodeModel copy() for only_current addition

parent 605b930b
...@@ -300,7 +300,7 @@ class GcodeModel(Model): ...@@ -300,7 +300,7 @@ class GcodeModel(Model):
def copy(self): def copy(self):
copy = GcodeModel() copy = GcodeModel()
for var in ["vertices", "colors", "max_layers", "num_layers_to_draw", "printed_until", "layer_stops", "dims"]: for var in ["vertices", "colors", "max_layers", "num_layers_to_draw", "printed_until", "layer_stops", "dims", "only_current"]:
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