Skip to content

Commit

Permalink
multi-skeleton potential bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev committed Jul 12, 2021
1 parent 9aadab0 commit 8b7ad83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-4.0/src/core/Skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ export class Skeleton implements ISkeleton<Bone, Slot> {
const sx = this.scaleX;
const sy = settings.yDown? -this.scaleY : this.scaleY;
rootBone.matrix.a = (pa * la + pb * lc) * sx;
rootBone.matrix.b = (pa * lb + pb * ld) * sx;
rootBone.matrix.c = (pc * la + pd * lc) * sy;
rootBone.matrix.c = (pa * lb + pb * ld) * sx;
rootBone.matrix.b = (pc * la + pd * lc) * sy;
rootBone.matrix.d = (pc * lb + pd * ld) * sy;

// Update everything except root bone.
Expand Down

0 comments on commit 8b7ad83

Please sign in to comment.