Fix mesh combiner [skip ci]

master
Jeremy Hu 2020-04-10 23:24:57 +09:30
parent c26a65c565
commit a7730884b2
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ MeshCombiner::Mesh::Mesh(const std::vector<QVector3D> &vertices, const std::vect
MeshCombiner::Mesh::Mesh(const Mesh &other) MeshCombiner::Mesh::Mesh(const Mesh &other)
{ {
if (other.m_privateData) { if (other.m_privateData) {
m_isSelfIntersected = other.m_isSelfIntersected;
m_privateData = new CgalMesh(*(CgalMesh *)other.m_privateData); m_privateData = new CgalMesh(*(CgalMesh *)other.m_privateData);
validate(); validate();
} }