1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00

addObject

This commit is contained in:
Jason Hooks 2011-11-16 16:22:13 -05:00
parent 58f103a75c
commit 9b94074472
3 changed files with 5 additions and 3 deletions

View file

@ -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){

View file

@ -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>

View file

@ -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);
}