Skip to content

Commit

Permalink
[haxe] Port: Fixed mixing out inherit timelines to the setup pose. See
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Aug 5, 2024
1 parent 9e35ce9 commit 6290342
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6290342

Please sign in to comment.