mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
[lua] Fixed #1820
- Port of TransformMode.noRotationOrReflection was incorrect. - AnimationState.applyAttachmentTimeline was passed incorrect arguments.
This commit is contained in:
parent
51a0641c6e
commit
444810c598
@ -381,7 +381,7 @@ function AnimationState:apply (skeleton)
|
||||
self:applyRotateTimeline(timeline, skeleton, animationTime, mix, timelineBlend, timelinesRotation, ii * 2,
|
||||
firstFrame)
|
||||
elseif timeline.type == Animation.TimelineType.attachment then
|
||||
self:applyAttachmentTimeline(skeleton, animationTime, timelineBlend, true)
|
||||
self:applyAttachmentTimeline(timeline, skeleton, animationTime, timelineBlend, true)
|
||||
else
|
||||
timeline:apply(skeleton, animationLast, animationTime, self.events, mix, timelineBlend, MixDirection._in)
|
||||
end
|
||||
|
||||
@ -164,7 +164,7 @@ function Bone:updateWorldTransformWith (x, y, rotation, scaleX, scaleY, shearX,
|
||||
self.b = pa * lb - pb * ld
|
||||
self.c = pc * la + pd * lc
|
||||
self.d = pc * lb + pd * ld
|
||||
return
|
||||
|
||||
elseif transformMode == TransformMode.noScale or transformMode == TransformMode.noScaleOrReflection then
|
||||
local cos = math_cos(math_rad(rotation))
|
||||
local sin = math_sin(math_rad(rotation))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user