Save/Load new color print data to/from amf and 3mf files.

This commit is contained in:
YuSanka 2019-11-11 16:01:34 +01:00
parent 6c8bb51f4a
commit 519291394a
4 changed files with 172 additions and 3 deletions
src/libslic3r

View file

@ -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;
}