Fixed scale timeline.

closes #1030
This commit is contained in:
Nathan Sweet 2017-10-30 14:15:43 +01:00
parent c25675f75e
commit 5c78859151

View File

@ -562,8 +562,10 @@ public class Animation {
break;
case first:
case replace:
bone.scaleX += (x - bone.scaleX * Math.signum(x)) * alpha;
bone.scaleY += (y - bone.scaleY * Math.signum(y)) * alpha;
bx = Math.abs(bone.scaleX) * Math.signum(x);
by = Math.abs(bone.scaleY) * Math.signum(y);
bone.scaleX = bx + (x - bx) * alpha;
bone.scaleY = by + (y - by) * alpha;
break;
case add:
bx = Math.signum(x);