Prechádzať zdrojové kódy

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

Davide Tantillo 1 rok pred
rodič
commit
6290342960

+ 5 - 0
spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx

@@ -63,6 +63,11 @@ class InheritTimeline extends Timeline implements BoneTimeline {
 		var bone:Bone = skeleton.bones[boneIndex];
 		var bone:Bone = skeleton.bones[boneIndex];
 		if (!bone.active) return;
 		if (!bone.active) return;
 
 
+		if (direction == MixDirection.mixOut) {
+			if (blend == MixBlend.setup) bone.inherit = bone.data.inherit;
+			return;
+		}
+
 		var frames:Array<Float> = frames;
 		var frames:Array<Float> = frames;
 		if (time < frames[0]) {
 		if (time < frames[0]) {
 			if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;
 			if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;