Skip to content

Commit

Permalink
[libgdx] Fixed mixing out inherit timelines to the setup pose.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Aug 3, 2024
1 parent 195c65f commit bc15c45
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,11 @@ public void apply (Skeleton skeleton, float lastTime, float time, @Null Array<Ev
Bone bone = skeleton.bones.get(boneIndex);
if (!bone.active) return;

if (direction == out) {
if (blend == setup) bone.inherit = bone.data.inherit;
return;
}

float[] frames = this.frames;
if (time < frames[0]) {
if (blend == setup || blend == first) bone.inherit = bone.data.inherit;
Expand Down

0 comments on commit bc15c45

Please sign in to comment.