mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 19:06:42 +00:00
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)
|
void RenderingManager::moveObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& position)
|
||||||
{
|
{
|
||||||
/// \todo move this to the rendering-subsystems
|
/// \todo move this to the rendering-subsystems
|
||||||
mRendering.getScene()->getSceneNode (ptr.getRefData().getHandle())->
|
ptr.getRefData().getBaseNode()->setPosition(position);
|
||||||
setPosition (position);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderingManager::scaleObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& scale)
|
void RenderingManager::scaleObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& scale)
|
||||||
|
|
Loading…
Reference in a new issue