소스 검색

Closes #1059, AttachmentTimeline handles setup and first blends the same before the first key frame, setting the attachment to the setup pose attachment.

badlogic 7 년 전
부모
커밋
82d3dd80e1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java

+ 1 - 1
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java

@@ -905,7 +905,7 @@ public class Animation {
 
 			float[] frames = this.frames;
 			if (time < frames[0]) { // Time is before first frame.
-				if (blend == setup) {
+				if (blend == setup || blend == first) {
 					String attachmentName = slot.data.attachmentName;
 					slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
 				}