浏览代码

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

Davide Tantillo 1 年之前
父节点
当前提交
6290342960
共有 1 个文件被更改,包括 5 次插入0 次删除
  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;