From 6693365543fcb77fb4e28bc57bd2e1b50367291b Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sat, 1 Sep 2018 18:18:28 +0800 Subject: [PATCH] Fix invalid mesh cache --- src/meshgenerator.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()) {