[haxe] Port: Fixed mixing out inherit timelines to the setup pose. See #2590.

This commit is contained in:
Davide Tantillo 2024-08-05 09:04:39 +02:00
parent 9e35ce95fe
commit 6290342960

View File

@ -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<Float> = frames;
if (time < frames[0]) {
if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;