소스 검색

Merge branch '3.8' into 4.0-beta

badlogic 5 년 전
부모
커밋
893c3a25e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-lua/AnimationState.lua

+ 1 - 1
spine-lua/AnimationState.lua

@@ -520,8 +520,8 @@ function AnimationState:applyAttachmentTimeline(timeline, skeleton, time, blend,
 			frameIndex = zlen(frames) - 1;
 			frameIndex = zlen(frames) - 1;
 		else
 		else
 			frameIndex = Animation.binarySearch(frames, time, 1) - 1;
 			frameIndex = Animation.binarySearch(frames, time, 1) - 1;
-			self:setAttachment(skeleton, slot, timeline.attachmentNames[frameIndex], attachments)
 		end
 		end
+		self:setAttachment(skeleton, slot, timeline.attachmentNames[frameIndex], attachments)
 	end
 	end
 
 
 	-- If an attachment wasn't set (ie before the first frame or attachments is false), set the setup attachment later.
 	-- If an attachment wasn't set (ie before the first frame or attachments is false), set the setup attachment later.