Browse Source

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

Davide Tantillo 11 tháng trước cách đây
mục cha
commit
6290342960
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      spine-haxe/spine-haxe/spine/animation/InheritTimeline.hx

+ 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];
 		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;