Fixed some more issues in copy / paste of objects and volumes

due to the layer_height_profile, paint on supports and seam
being stored as an object on its own onto the Undo / Redo stack.
This commit is contained in:
Vojtech Bubnik 2020-10-15 17:29:42 +02:00
parent 00a7799341
commit a8fda7d2f1
5 changed files with 171 additions and 45 deletions

View file

@ -404,10 +404,10 @@ static inline void model_volume_list_copy_configs(ModelObject &model_object_dst,
// Copy the ModelVolume data.
mv_dst.name = mv_src.name;
mv_dst.config.assign_config(mv_src.config);
if (! mv_dst.supported_facets.timestamp_matches(mv_src.supported_facets))
mv_dst.supported_facets = mv_src.supported_facets;
if (! mv_dst.seam_facets.timestamp_matches(mv_src.seam_facets))
mv_dst.seam_facets = mv_src.seam_facets;
assert(mv_dst.supported_facets.id() == mv_src.supported_facets.id());
mv_dst.supported_facets.assign(mv_src.supported_facets);
assert(mv_dst.seam_facets.id() == mv_src.seam_facets.id());
mv_dst.seam_facets.assign(mv_src.seam_facets);
//FIXME what to do with the materials?
// mv_dst.m_material_id = mv_src.m_material_id;
++ i_src;