Reset underlying data structures after performing a move in the TriangleMesh constructor.

This commit is contained in:
Joseph Lenox 2018-07-21 18:45:35 -05:00
parent 597e14c506
commit 7f3e00f581

View File

@ -112,12 +112,14 @@ void TriangleMesh::clone(const TriangleMesh& other) {
TriangleMesh::TriangleMesh(TriangleMesh&& other) {
this->repaired = std::move(other.repaired);
this->stl = std::move(other.stl);
stl_initialize(&other.stl);
}
TriangleMesh& TriangleMesh::operator= (TriangleMesh&& other)
{
this->repaired = std::move(other.repaired);
this->stl = std::move(other.stl);
stl_initialize(&other.stl);
return *this;
}