diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index b86184ce..6d2e5476 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -226,6 +226,8 @@ void *MeshGenerator::combinePartMesh(QString partId) std::map bmeshToNodeIdMap; auto &cacheBmeshNodes = m_cacheContext->partBmeshNodes[partId]; auto &cacheBmeshVertices = m_cacheContext->partBmeshVertices[partId]; + cacheBmeshNodes.clear(); + cacheBmeshVertices.clear(); for (const auto &nodeId: m_partNodeIds[partId]) { auto findNode = m_snapshot->nodes.find(nodeId); if (findNode == m_snapshot->nodes.end()) {