From 9e35ce95fe1f9585092a6b5fee0cb53dbac23b2c Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Mon, 5 Aug 2024 09:02:41 +0200 Subject: [PATCH] [ts] Port: Fixed mixing out inherit timelines to the setup pose. See #2590. --- spine-ts/spine-core/src/Animation.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spine-ts/spine-core/src/Animation.ts b/spine-ts/spine-core/src/Animation.ts index ff9a5d0b8..c54085ca6 100644 --- a/spine-ts/spine-core/src/Animation.ts +++ b/spine-ts/spine-core/src/Animation.ts @@ -835,6 +835,11 @@ export class InheritTimeline extends Timeline implements BoneTimeline { let bone = skeleton.bones[this.boneIndex]; if (!bone.active) return; + if (direction == MixDirection.mixOut) { + if (blend == MixBlend.setup) bone.inherit = bone.data.inherit; + return; + } + let frames = this.frames; if (time < frames[0]) { if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;