Skip to content

Commit

Permalink
Fix ci issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jan 22, 2025
1 parent effad1a commit 7c9cbe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/cocos/core/scene-graph/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,8 @@ bool Node::getParentWorldMatrixNoSkew(Node *parent, Mat4 *out) {
if (startNode) {
out->set(startNode->_parent->_worldMatrix); // Set the first no-skew node's world matrix to out.
auto iter = std::find(ancestors.begin(), ancestors.end(), startNode);
int start = iter - ancestors.begin();
for (int i = start; i >= 0; --i) {
long start = static_cast<long>(iter - ancestors.begin());
for (long i = start; i >= 0; --i) {
const auto *node = ancestors[i];
Mat4::fromRTS(node->_localRotation, node->_localPosition, node->_localScale, &curMat4);
Mat4::multiply(*out, curMat4, out);
Expand Down

0 comments on commit 7c9cbe2

Please sign in to comment.