Crash with scenegeometry

jarwulf

17-11-2010 00:55:32

Gotta crash when trying to create scene geometry out of mesh

Last Set Breakpoint

if (mLevelMesh == 0)//General/playpen.nxs", "playpen");
mLevelMesh = NxOgre::MeshManager::getSingleton()->load("ogre://General/BeltofWeller5.nxs", "level");

(breakpoint)SceneGeometry* scene_geom = mScene->createSceneGeometry(TriangleGeometryDescription(mLevelMesh), globalPose);


VS2008 auto breaks here in NxOgreMesh.cpp line 296

NxTriangleMesh* Mesh::getAsTriangleMesh()
{
return mType == Enums::MeshType_Triangle ? mMesh.mTriangle : 0;
}


Any guesses as to what might be wrong?

betajaen

17-11-2010 08:40:59

mLevelMesh isn't null right?