diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index 6be42affb..2709ced4f 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -594,7 +594,7 @@ namespace MWPhysics // --------------------------------------------------------------- PhysicsSystem::PhysicsSystem(Resource::ResourceSystem* resourceSystem, osg::ref_ptr parentNode) - : mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS(), resourceSystem->getSceneManager())) + : mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS())) , mDebugDrawEnabled(false) , mTimeAccum(0.0f) , mWaterHeight(0) diff --git a/components/nifbullet/bulletshapemanager.cpp b/components/nifbullet/bulletshapemanager.cpp index 57848ab81..6acfdd408 100644 --- a/components/nifbullet/bulletshapemanager.cpp +++ b/components/nifbullet/bulletshapemanager.cpp @@ -4,14 +4,11 @@ #include -#include - namespace NifBullet { -BulletShapeManager::BulletShapeManager(const VFS::Manager* vfs, Resource::SceneManager* sceneManager) +BulletShapeManager::BulletShapeManager(const VFS::Manager* vfs) : mVFS(vfs) - , mSceneManager(sceneManager) { } diff --git a/components/nifbullet/bulletshapemanager.hpp b/components/nifbullet/bulletshapemanager.hpp index 9db674d6d..6b9ec60de 100644 --- a/components/nifbullet/bulletshapemanager.hpp +++ b/components/nifbullet/bulletshapemanager.hpp @@ -25,15 +25,13 @@ namespace NifBullet class BulletShapeManager { public: - BulletShapeManager(const VFS::Manager* vfs, Resource::SceneManager* sceneManager); + BulletShapeManager(const VFS::Manager* vfs); ~BulletShapeManager(); osg::ref_ptr createInstance(const std::string& name); private: const VFS::Manager* mVFS; - // need to load keyframes to know what nodes are going to be animated - Resource::SceneManager* mSceneManager; typedef std::map > Index; Index mIndex;