Save/Load new color print data to/from amf and 3mf files.
This commit is contained in:
parent
6c8bb51f4a
commit
519291394a
4 changed files with 172 additions and 3 deletions
src/libslic3r
|
@ -41,6 +41,9 @@ Model& Model::assign_copy(const Model &rhs)
|
|||
mo->set_model(this);
|
||||
this->objects.emplace_back(mo);
|
||||
}
|
||||
|
||||
// copy custom code per height
|
||||
this->custom_gcode_per_height = rhs.custom_gcode_per_height;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -59,6 +62,9 @@ Model& Model::assign_copy(Model &&rhs)
|
|||
for (ModelObject *model_object : this->objects)
|
||||
model_object->set_model(this);
|
||||
rhs.objects.clear();
|
||||
|
||||
// copy custom code per height
|
||||
this->custom_gcode_per_height = rhs.custom_gcode_per_height;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue