Restoring custom supports/seams after reload from disk
Until now, the custom data were lost.
This commit is contained in:
parent
f3c4888291
commit
d001195ebd
@ -3322,6 +3322,8 @@ void Plater::priv::reload_from_disk()
|
|||||||
new_volume->translate(new_volume->get_transformation().get_matrix(true) * (new_volume->source.mesh_offset - old_volume->source.mesh_offset));
|
new_volume->translate(new_volume->get_transformation().get_matrix(true) * (new_volume->source.mesh_offset - old_volume->source.mesh_offset));
|
||||||
if (old_volume->source.is_converted_from_inches)
|
if (old_volume->source.is_converted_from_inches)
|
||||||
new_volume->convert_from_imperial_units();
|
new_volume->convert_from_imperial_units();
|
||||||
|
new_volume->supported_facets.assign(old_volume->supported_facets);
|
||||||
|
new_volume->seam_facets.assign(old_volume->seam_facets);
|
||||||
std::swap(old_model_object->volumes[sel_v.volume_idx], old_model_object->volumes.back());
|
std::swap(old_model_object->volumes[sel_v.volume_idx], old_model_object->volumes.back());
|
||||||
old_model_object->delete_volume(old_model_object->volumes.size() - 1);
|
old_model_object->delete_volume(old_model_object->volumes.size() - 1);
|
||||||
old_model_object->ensure_on_bed();
|
old_model_object->ensure_on_bed();
|
||||||
|
Loading…
Reference in New Issue
Block a user