fix issue #2675: update dbvt volume immediately after face tree is initialized to prevent empty volumes

This commit is contained in:
Xuchen Han
2020-03-20 12:34:38 -07:00
parent 3c9dde54a2
commit 3cb18f87cc
+1
View File
@@ -2637,6 +2637,7 @@ void btSoftBody::initializeFaceTree()
}
}
m_fdbvt.m_root = buildTreeBottomUp(leafNodes, adj);
updateFaceTree(false, true);
if (m_fdbvnt)
delete m_fdbvnt;
m_fdbvnt = copyToDbvnt(m_fdbvt.m_root);