Prechádzať zdrojové kódy

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

Nathan Sweet 1 rok pred
rodič
commit
bc15c4566e

+ 5 - 0
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java

@@ -980,6 +980,11 @@ public class Animation {
 			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;