Merge pull request #2685 from xhan0619/fix2675

fix issue #2675: update dbvt volume immediately after face tree is in…
This commit is contained in:
erwincoumans
2020-03-21 17:25:02 -07:00
committed by GitHub

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);