Browse Source

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

badlogic 9 năm trước cách đây
mục cha
commit
35d25096d0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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