mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed whitespace stripped regions.
This commit is contained in:
parent
59db3c834b
commit
c65830aa85
@ -75,10 +75,10 @@ public class RegionAttachment extends Attachment {
|
|||||||
if (region instanceof AtlasRegion) {
|
if (region instanceof AtlasRegion) {
|
||||||
AtlasRegion region = (AtlasRegion)this.region;
|
AtlasRegion region = (AtlasRegion)this.region;
|
||||||
if (region.rotate) {
|
if (region.rotate) {
|
||||||
localX += region.offsetX / region.originalWidth * height;
|
localX += region.offsetX / region.originalWidth * width;
|
||||||
localY += region.offsetY / region.originalHeight * width;
|
localY += region.offsetY / region.originalHeight * height;
|
||||||
localX2 -= (region.originalWidth - region.offsetX - region.packedHeight) / region.originalWidth * height;
|
localX2 -= (region.originalWidth - region.offsetX - region.packedHeight) / region.originalWidth * width;
|
||||||
localY2 -= (region.originalHeight - region.offsetY - region.packedWidth) / region.originalHeight * width;
|
localY2 -= (region.originalHeight - region.offsetY - region.packedWidth) / region.originalHeight * height;
|
||||||
} else {
|
} else {
|
||||||
localX += region.offsetX / region.originalWidth * width;
|
localX += region.offsetX / region.originalWidth * width;
|
||||||
localY += region.offsetY / region.originalHeight * height;
|
localY += region.offsetY / region.originalHeight * height;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user