Commits

Anonymous committed e163e83

Make MeshMagick work with latest Ogre 1.7.
LodStrategyManager needs to be instantiated now.

Comments (0)

Files changed (2)

include/MmOgreEnvironment.h

 
 #ifdef __APPLE__
 #	include <Ogre/OgreDefaultHardwareBufferManager.h>
+#	include <Ogre/OgreLodStrategyManager.h>
 #else
 #	include <OgreDefaultHardwareBufferManager.h>
+#	include <OgreLodStrategyManager.h>
 #endif
 
 #include "MmStatefulMeshSerializer.h"
         Ogre::ResourceGroupManager* mResourceGroupMgr;
         Ogre::Math* mMath;
         Ogre::MeshManager* mMeshMgr;
+        Ogre::LodStrategyManager* mLodStrategyMgr;
         Ogre::MaterialManager* mMaterialMgr;
         Ogre::SkeletonManager* mSkeletonMgr;
         StatefulMeshSerializer* mMeshSerializer;

src/MmOgreEnvironment.cpp

 
 #include "MmOgreEnvironment.h"
 
+#include <OgreLodStrategyManager.h>
 #include <OgreLogManager.h>
+#include <OgreMaterialManager.h>
+#include <OgreMeshManager.h>
 #include <OgreResourceGroupManager.h>
-#include <OgreMeshManager.h>
 #include <OgreSkeletonManager.h>
-#include <OgreMaterialManager.h>
 
 using namespace Ogre;
 
           mResourceGroupMgr(NULL),
           mMath(NULL),
           mMeshMgr(NULL),
+		  mLodStrategyMgr(NULL),
           mMaterialMgr(NULL),
           mSkeletonMgr(NULL),
           mMeshSerializer(NULL),
 			delete mSkeletonSerializer;
 			delete mMeshSerializer;
 			delete mMaterialMgr;
+			delete mLodStrategyMgr;
 			delete mMeshMgr;
 			delete mMath;
 			delete mResourceGroupMgr;
 			mMath = new Math();
 			mMeshMgr = new MeshManager();
 			mMeshMgr->setBoundsPaddingFactor(0.0f);
+			mLodStrategyMgr = new LodStrategyManager();
 			mMaterialMgr = new MaterialManager();
 			mMaterialMgr->initialise();
 			mSkeletonMgr = new SkeletonManager();