Эх сурвалжийг харах

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

badlogic 9 жил өмнө
parent
commit
35d25096d0

+ 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