ModelObject::add_volume(const ModelVolume &other)
shall not re-center the volume as it will share meshes (object mesh, convex hull mesh) of the source, which may be in use by the background processing.
This commit is contained in:
parent
dbfa4e6c83
commit
9b7bb41db5
@ -691,8 +691,9 @@ ModelVolume* ModelObject::add_volume(const ModelVolume &other)
|
||||
{
|
||||
ModelVolume* v = new ModelVolume(this, other);
|
||||
this->volumes.push_back(v);
|
||||
v->center_geometry_after_creation();
|
||||
this->invalidate_bounding_box();
|
||||
// The volume should already be centered at this point of time when copying shared pointers of the triangle mesh and convex hull.
|
||||
// v->center_geometry_after_creation();
|
||||
// this->invalidate_bounding_box();
|
||||
return v;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user