mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
parent
c25675f75e
commit
5c78859151
@ -562,8 +562,10 @@ public class Animation {
|
|||||||
break;
|
break;
|
||||||
case first:
|
case first:
|
||||||
case replace:
|
case replace:
|
||||||
bone.scaleX += (x - bone.scaleX * Math.signum(x)) * alpha;
|
bx = Math.abs(bone.scaleX) * Math.signum(x);
|
||||||
bone.scaleY += (y - bone.scaleY * Math.signum(y)) * alpha;
|
by = Math.abs(bone.scaleY) * Math.signum(y);
|
||||||
|
bone.scaleX = bx + (x - bx) * alpha;
|
||||||
|
bone.scaleY = by + (y - by) * alpha;
|
||||||
break;
|
break;
|
||||||
case add:
|
case add:
|
||||||
bx = Math.signum(x);
|
bx = Math.signum(x);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user