From a7b33e3ec3a85962d1dab87b2f926e9dff113d20 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Fri, 3 Jan 2014 14:21:33 -0800 Subject: [PATCH] Fixes NodeToWorld Multiplication was in the incorrect order --- cocos/2d/CCNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index 3698d90cff..9d9f3a0527 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -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; }