- fix spine rotation in cache mode (#3884)

Co-authored-by: Viet <>
This commit is contained in:
Jackie0110
2021-09-13 16:17:18 +07:00
committed by GitHub
parent 43fba39022
commit 01b45dbc11
@@ -334,8 +334,7 @@ void SkeletonCacheAnimation::render(float dt) {
point = (cc::Vec3 *)(dstVertexBuffer + posIndex);
// force z value to zero
point->z = 0;
point->x = point->x * nodeWorldMat.m[0] + point->y * nodeWorldMat.m[4] + nodeWorldMat.m[12]; // x
point->y = point->y * nodeWorldMat.m[1] + point->y * nodeWorldMat.m[5] + nodeWorldMat.m[13]; // y
point->transformMat4(*point, nodeWorldMat);
}
}