forked from mirror/openmw-tes3mp
Avoid an unnecessary lookup when moving the scene node
This commit is contained in:
parent
5f668976a8
commit
05dfafa777
1 changed files with 1 additions and 2 deletions
|
@ -249,8 +249,7 @@ void RenderingManager::removeObject (const MWWorld::Ptr& ptr)
|
|||
void RenderingManager::moveObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& position)
|
||||
{
|
||||
/// \todo move this to the rendering-subsystems
|
||||
mRendering.getScene()->getSceneNode (ptr.getRefData().getHandle())->
|
||||
setPosition (position);
|
||||
ptr.getRefData().getBaseNode()->setPosition(position);
|
||||
}
|
||||
|
||||
void RenderingManager::scaleObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& scale)
|
||||
|
|
Loading…
Reference in a new issue