Browse Source

Fix crash when loading converted Age.

Joseph Davies 13 years ago
parent
commit
61483e2739
  1. 3
      Sources/Plasma/PubUtilLib/plPhysX/plSimulationMgr.cpp

3
Sources/Plasma/PubUtilLib/plPhysX/plSimulationMgr.cpp

@ -650,7 +650,10 @@ int plSimulationMgr::GetMaterialIdx(NxScene* scene, float friction, float restit
desc.dynamicFriction = friction;
desc.staticFriction = friction;
NxMaterial* mat = scene->createMaterial(desc);
if (mat)
return mat->getMaterialIndex();
else
return NULL;
}
/////////////////////////////////////////////////////////////////

Loading…
Cancel
Save