From 62903429601bc2a894fba6fa1c12e355a166ce51 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Mon, 5 Aug 2024 09:04:39 +0200 Subject: [PATCH] [haxe] Port: Fixed mixing out inherit timelines to the setup pose. See #2590. --- spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx b/spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx index c2e36b964..605eab100 100644 --- a/spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx +++ b/spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx @@ -63,6 +63,11 @@ class InheritTimeline extends Timeline implements BoneTimeline { var bone:Bone = skeleton.bones[boneIndex]; if (!bone.active) return; + if (direction == MixDirection.mixOut) { + if (blend == MixBlend.setup) bone.inherit = bone.data.inherit; + return; + } + var frames:Array = frames; if (time < frames[0]) { if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;