浏览代码

[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