Skip to content

Commit

Permalink
Skip the root bone
Browse files Browse the repository at this point in the history
  • Loading branch information
smaren committed Nov 26, 2024
1 parent 78951f2 commit b98ca2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-ts/spine-core/src/Skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class Skeleton {

updateWorldTransformWith (physics: Physics, parent: Bone) {
let bones = this.bones;
for (let i = 0, n = bones.length; i < n; i++) {
for (let i = 1, n = bones.length; i < n; i++) { // Skip root bone.
let bone = bones[i];
bone.ax = bone.x;
bone.ay = bone.y;
Expand Down

0 comments on commit b98ca2a

Please sign in to comment.