소스 검색

[lua] Closes #751, didn't clear self->events in AnimationState:queueEvents

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

+ 1 - 0
spine-lua/AnimationState.lua

@@ -393,6 +393,7 @@ function AnimationState:applyRotateTimeline (timeline, skeleton, time, alpha, se
   local frames = rotateTimeline.frames
   local bone = skeleton.bones[rotateTimeline.boneIndex]
   if time < frames[0] then
+		if setupPose then bone.rotation = bone.data.rotation end
 		return
 	end