Skip to content

Commit 7d0c10f

Browse files
authored
Revert "Small performance boost in using Mat4::operator*= instead of operator* (#19960)" (#19975)
This reverts commit a242a79.
1 parent a40444c commit 7d0c10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/2d/CCNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ Mat4 Node::getNodeToParentTransform(Node* ancestor) const
16861686

16871687
for (Node *p = _parent; p != nullptr && p != ancestor ; p = p->getParent())
16881688
{
1689-
t *= p->getNodeToParentTransform();
1689+
t = p->getNodeToParentTransform() * t;
16901690
}
16911691

16921692
return t;

0 commit comments

Comments
 (0)