[libgdx] Fixed mixing out inherit timelines to the setup pose.

This commit is contained in:
Nathan Sweet 2024-08-02 16:29:06 -10:00
parent 195c65ffd9
commit bc15c4566e

View File

@ -980,6 +980,11 @@ public class Animation {
Bone bone = skeleton.bones.get(boneIndex); Bone bone = skeleton.bones.get(boneIndex);
if (!bone.active) return; if (!bone.active) return;
if (direction == out) {
if (blend == setup) bone.inherit = bone.data.inherit;
return;
}
float[] frames = this.frames; float[] frames = this.frames;
if (time < frames[0]) { if (time < frames[0]) {
if (blend == setup || blend == first) bone.inherit = bone.data.inherit; if (blend == setup || blend == first) bone.inherit = bone.data.inherit;