mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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,
|
self:applyRotateTimeline(timeline, skeleton, animationTime, mix, timelineBlend, timelinesRotation, ii * 2,
|
||||||
firstFrame)
|
firstFrame)
|
||||||
elseif timeline.type == Animation.TimelineType.attachment then
|
elseif timeline.type == Animation.TimelineType.attachment then
|
||||||
self:applyAttachmentTimeline(skeleton, animationTime, timelineBlend, true)
|
self:applyAttachmentTimeline(timeline, skeleton, animationTime, timelineBlend, true)
|
||||||
else
|
else
|
||||||
timeline:apply(skeleton, animationLast, animationTime, self.events, mix, timelineBlend, MixDirection._in)
|
timeline:apply(skeleton, animationLast, animationTime, self.events, mix, timelineBlend, MixDirection._in)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -164,7 +164,7 @@ function Bone:updateWorldTransformWith (x, y, rotation, scaleX, scaleY, shearX,
|
|||||||
self.b = pa * lb - pb * ld
|
self.b = pa * lb - pb * ld
|
||||||
self.c = pc * la + pd * lc
|
self.c = pc * la + pd * lc
|
||||||
self.d = pc * lb + pd * ld
|
self.d = pc * lb + pd * ld
|
||||||
return
|
|
||||||
elseif transformMode == TransformMode.noScale or transformMode == TransformMode.noScaleOrReflection then
|
elseif transformMode == TransformMode.noScale or transformMode == TransformMode.noScaleOrReflection then
|
||||||
local cos = math_cos(math_rad(rotation))
|
local cos = math_cos(math_rad(rotation))
|
||||||
local sin = math_sin(math_rad(rotation))
|
local sin = math_sin(math_rad(rotation))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user