mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Better scale sign computation.
This commit is contained in:
parent
5edeeb6035
commit
e4e312626b
@ -397,9 +397,9 @@ public class Animation {
|
||||
} else {
|
||||
x *= bone.data.scaleX;
|
||||
y *= bone.data.scaleY;
|
||||
float bx = Math.abs(bone.scaleX), by = Math.abs(bone.scaleY);
|
||||
bone.scaleX = (bx + (Math.abs(x) - bx) * alpha) * Math.signum(x);
|
||||
bone.scaleY = (by + (Math.abs(y) - by) * alpha) * Math.signum(y);
|
||||
float 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user