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; }