@ -84,7 +84,9 @@ void RenderingManager::removeCell (MWWorld::Ptr::CellStore *store){
}
void RenderingManager::addObject (const MWWorld::Ptr& ptr){
const MWWorld::Class& class_ =
MWWorld::Class::get (ptr);
class_.insertObjectRendering(ptr, *this);
void RenderingManager::removeObject (const MWWorld::Ptr& ptr){
@ -6,7 +6,7 @@
#include "debugging.hpp"
//Commented out for now, possibly do an ifdef if necessary, cla
#include "../mwworld/class.hpp"
#include <utility>
#include <openengine/ogre/renderer.hpp>
@ -60,7 +60,7 @@ void insertCellRefList(MWRender::RenderingManager& rendering, MWWorld::Environme
try
{
class_.insertObjectRendering(ptr, rendering);
rendering.addObject(ptr);
class_.insertObject(ptr, physics, environment);
class_.enable (ptr, environment);