Explorar o código

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

badlogic %!s(int64=9) %!d(string=hai) anos
pai
achega
35d25096d0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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