Skip to content

Commit

Permalink
[as3] Ported scale mixing fix, closes EsotericSoftware#2028.
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Jan 27, 2022
1 parent eff8b37 commit b0de9cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spine-as3/spine-as3/src/spine/animation/ScaleTimeline.as
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ package spine.animation {
bone.scaleY = by + (Math.abs(y) * MathUtils.signum(by) - by) * alpha;
break;
case MixBlend.add:
bone.scaleX = (x - bone.data.scaleX) * alpha;
bone.scaleY = (y - bone.data.scaleY) * alpha;
bone.scaleX += (x - bone.data.scaleX) * alpha;
bone.scaleY += (y - bone.data.scaleY) * alpha;
}
} else {
switch (blend) {
Expand Down
2 changes: 1 addition & 1 deletion spine-as3/spine-as3/src/spine/animation/ScaleXTimeline.as
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ package spine.animation {
bone.scaleX = bx + (Math.abs(x) * MathUtils.signum(bx) - bx) * alpha;
break;
case MixBlend.add:
bone.scaleX = (x - bone.data.scaleX) * alpha;
bone.scaleX += (x - bone.data.scaleX) * alpha;
}
} else {
switch (blend) {
Expand Down
2 changes: 1 addition & 1 deletion spine-as3/spine-as3/src/spine/animation/ScaleYTimeline.as
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ package spine.animation {
bone.scaleY = by + (Math.abs(y) * MathUtils.signum(by) - by) * alpha;
break;
case MixBlend.add:
bone.scaleY = (y - bone.data.scaleY) * alpha;
bone.scaleY += (y - bone.data.scaleY) * alpha;
}
} else {
switch (blend) {
Expand Down

0 comments on commit b0de9cb

Please sign in to comment.