mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fix spine z roration (#3754)
This commit is contained in:
@@ -831,6 +831,7 @@ void SkeletonRenderer::render(float /*deltaTime*/) {
|
||||
cc::Vec3 *point = nullptr;
|
||||
for (unsigned int ii = 0, nn = vbSize; ii < nn; ii += vbs) {
|
||||
point = reinterpret_cast<cc::Vec3 *>(vbBuffer + ii);
|
||||
point->z = 0; //reset for z value
|
||||
point->transformMat4(*point, nodeWorldMat);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user