- Port of TransformMode.noRotationOrReflection was incorrect.
- AnimationState.applyAttachmentTimeline was passed incorrect arguments.
This commit is contained in:
badlogic 2020-12-05 10:06:08 +01:00
parent 51a0641c6e
commit 444810c598
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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))