mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
addObject
This commit is contained in:
parent
58f103a75c
commit
9b94074472
3 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue