|
@@ -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;
|
|
|
|
- localY += region.offsetY / region.originalHeight * width;
|
|
|
|
- localX2 -= (region.originalWidth - region.offsetX - region.packedHeight) / region.originalWidth * height;
|
|
|
|
- localY2 -= (region.originalHeight - region.offsetY - region.packedWidth) / region.originalHeight * width;
|
|
|
|
|
|
+ localX += region.offsetX / region.originalWidth * width;
|
|
|
|
+ localY += region.offsetY / region.originalHeight * height;
|
|
|
|
+ localX2 -= (region.originalWidth - region.offsetX - region.packedHeight) / region.originalWidth * 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;
|