From 71a8751794f9a143302f8b788b86718c72b3c0ca Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Mon, 29 Apr 2013 16:17:46 +0200 Subject: [PATCH] Fixed scale. --- spine-csharp/src/Attachments/RegionAttachment.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-csharp/src/Attachments/RegionAttachment.cs b/spine-csharp/src/Attachments/RegionAttachment.cs index e2cc62928..445f1e2ed 100644 --- a/spine-csharp/src/Attachments/RegionAttachment.cs +++ b/spine-csharp/src/Attachments/RegionAttachment.cs @@ -95,9 +95,9 @@ namespace Spine { float scaleX = ScaleX; float scaleY = ScaleY; float regionScaleX = width / RegionOriginalWidth * scaleX; - float regionScaleY = height / RegionOriginalHeight * scaleX; + float regionScaleY = height / RegionOriginalHeight * scaleY; float localX = -width / 2 * scaleX + RegionOffsetX * regionScaleX; - float localY = -height / 2 * scaleX + RegionOffsetY * regionScaleY; + float localY = -height / 2 * scaleY + RegionOffsetY * regionScaleY; float localX2 = localX + RegionWidth * regionScaleX; float localY2 = localY + RegionHeight * regionScaleY; float radians = Rotation * (float)Math.PI / 180;