Fixes NodeToWorld

Multiplication was in the incorrect order
This commit is contained in:
Ricardo Quesada 2014-01-03 14:21:33 -08:00
parent e526a5bd34
commit a7b33e3ec3
1 changed files with 1 additions and 1 deletions

View File

@ -1256,7 +1256,7 @@ kmMat4 Node::getNodeToWorldTransform() const
kmMat4 t = this->getNodeToParentTransform();
for (Node *p = _parent; p != nullptr; p = p->getParent())
kmMat4Multiply(&t, &t, &p->getNodeToParentTransform());
kmMat4Multiply(&t, &p->getNodeToParentTransform(), &t);
return t;
}