mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 05:25:58 +08:00
Reset underlying data structures after performing a move in the TriangleMesh constructor.
This commit is contained in:
parent
597e14c506
commit
7f3e00f581
@ -112,12 +112,14 @@ void TriangleMesh::clone(const TriangleMesh& other) {
|
|||||||
TriangleMesh::TriangleMesh(TriangleMesh&& other) {
|
TriangleMesh::TriangleMesh(TriangleMesh&& other) {
|
||||||
this->repaired = std::move(other.repaired);
|
this->repaired = std::move(other.repaired);
|
||||||
this->stl = std::move(other.stl);
|
this->stl = std::move(other.stl);
|
||||||
|
stl_initialize(&other.stl);
|
||||||
}
|
}
|
||||||
|
|
||||||
TriangleMesh& TriangleMesh::operator= (TriangleMesh&& other)
|
TriangleMesh& TriangleMesh::operator= (TriangleMesh&& other)
|
||||||
{
|
{
|
||||||
this->repaired = std::move(other.repaired);
|
this->repaired = std::move(other.repaired);
|
||||||
this->stl = std::move(other.stl);
|
this->stl = std::move(other.stl);
|
||||||
|
stl_initialize(&other.stl);
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user