Fixing a crash when converting physics objects in the Game Engine.

This commit is contained in:
Daniel Stokes 2012-02-26 21:57:51 +00:00
parent 7068fee2dd
commit b200c7a4df

@ -1431,6 +1431,7 @@ bool CcdShapeConstructionInfo::SetMesh(RAS_MeshObject* meshobj, DerivedMesh* dm,
if (!dm) {
free_dm = true;
dm = CDDM_from_mesh(meshobj->GetMesh(), NULL);
DM_ensure_tessface(dm);
}
MVert *mvert = dm->getVertArray(dm);