瀏覽代碼

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: {