forked from teamnwah/openmw-tes3coop
Fix world transform calculation
This commit is contained in:
parent
12f1785882
commit
63e40d6e92
1 changed files with 1 additions and 1 deletions
|
@ -221,6 +221,6 @@ Ogre::Matrix4 Node::getLocalTransform()
|
||||||
Ogre::Matrix4 Node::getWorldTransform()
|
Ogre::Matrix4 Node::getWorldTransform()
|
||||||
{
|
{
|
||||||
if(parent != NULL)
|
if(parent != NULL)
|
||||||
return getLocalTransform() * parent->getWorldTransform();
|
return parent->getWorldTransform() * getLocalTransform();
|
||||||
return getLocalTransform();
|
return getLocalTransform();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue