فهرست منبع

Fixed region scale.

NathanSweet 9 سال پیش
والد
کامیت
3da9f83501
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java

+ 2 - 3
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java

@@ -276,8 +276,8 @@ public class SkeletonBinary {
 			region.setScaleX(scaleX);
 			region.setScaleY(scaleY);
 			region.setRotation(rotation);
-			region.setWidth(width);
-			region.setHeight(height);
+			region.setWidth(width * scale);
+			region.setHeight(height * scale);
 			Color.rgba8888ToColor(region.getColor(), color);
 			region.updateOffset();
 			return region;
@@ -390,7 +390,6 @@ public class SkeletonBinary {
 				mesh.setWidth(width * scale);
 				mesh.setHeight(height * scale);
 			}
-			// BOZO - Store to look up source attachment later.
 			return mesh;
 		}
 		case weightedlinkedmesh: {