forked from bartvdbraak/blender
Fixing a crash when converting physics objects in the Game Engine.
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user