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
1 changed files with 3 additions and 2 deletions
|
@ -691,8 +691,9 @@ ModelVolume* ModelObject::add_volume(const ModelVolume &other)
|
||||||
{
|
{
|
||||||
ModelVolume* v = new ModelVolume(this, other);
|
ModelVolume* v = new ModelVolume(this, other);
|
||||||
this->volumes.push_back(v);
|
this->volumes.push_back(v);
|
||||||
v->center_geometry_after_creation();
|
// The volume should already be centered at this point of time when copying shared pointers of the triangle mesh and convex hull.
|
||||||
this->invalidate_bounding_box();
|
// v->center_geometry_after_creation();
|
||||||
|
// this->invalidate_bounding_box();
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue