From b98ca2a066fb9512b8eec4887456e4610dc8e016 Mon Sep 17 00:00:00 2001 From: Martin Rosenbeck Date: Tue, 26 Nov 2024 12:06:42 +0100 Subject: [PATCH] Skip the root bone --- spine-ts/spine-core/src/Skeleton.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-ts/spine-core/src/Skeleton.ts b/spine-ts/spine-core/src/Skeleton.ts index f489ba69e..0a8303fce 100644 --- a/spine-ts/spine-core/src/Skeleton.ts +++ b/spine-ts/spine-core/src/Skeleton.ts @@ -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;