Ver código fonte

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

Davide Tantillo 1 ano atrás
pai
commit
9e35ce95fe
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      spine-ts/spine-core/src/Animation.ts

+ 5 - 0
spine-ts/spine-core/src/Animation.ts

@@ -835,6 +835,11 @@ export class InheritTimeline extends Timeline implements BoneTimeline {
 		let bone = skeleton.bones[this.boneIndex];
 		if (!bone.active) return;
 
+		if (direction == MixDirection.mixOut) {
+			if (blend == MixBlend.setup) bone.inherit = bone.data.inherit;
+			return;
+		}
+
 		let frames = this.frames;
 		if (time < frames[0]) {
 			if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;