diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index 8aea3820a4ad..11cceca7745a 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -1686,7 +1686,7 @@ Mat4 Node::getNodeToParentTransform(Node* ancestor) const for (Node *p = _parent; p != nullptr && p != ancestor ; p = p->getParent()) { - t = p->getNodeToParentTransform() * t; + t *= p->getNodeToParentTransform(); } return t;