NathanSweet 11 년 전
부모
커밋
ab15078b3e

+ 1 - 1
spine-as3/spine-as3/src/spine/animation/FfdTimeline.as

@@ -43,7 +43,7 @@ public class FfdTimeline extends CurveTimeline {
 	public function FfdTimeline (frameCount:int) {
 		super(frameCount);
 		frames = new Vector.<Number>(frameCount, true);
-		frameVertices = new Vector.<Number>(frameCount, true);
+		frameVertices = new Vector.<Vector.<Number>>(frameCount, true);
 	}
 
 	/** Sets the time and value of the specified keyframe. */

+ 1 - 1
spine-as3/spine-as3/src/spine/attachments/MeshAttachment.as

@@ -68,7 +68,7 @@ public dynamic class MeshAttachment extends Attachment {
 
 	public function updateUVs () : void {
 		var width:Number = regionU2 - regionU, height:Number = regionV2 - regionV;
-		var i:int, n:int = uvs.length;
+		var i:int, n:int = regionUVs.length;
 		if (!uvs || uvs.length != n) uvs = new Vector.<Number>(n, true);
 		if (regionRotate) {
 			for (i = 0; i < n; i += 2) {

+ 1 - 1
spine-as3/spine-as3/src/spine/attachments/SkinnedMeshAttachment.as

@@ -69,7 +69,7 @@ public dynamic class SkinnedMeshAttachment extends Attachment {
 
 	public function updateUVs () : void {
 		var width:Number = regionU2 - regionU, height:Number = regionV2 - regionV;
-		var i:int, n:int = uvs.length;
+		var i:int, n:int = regionUVs.length;
 		if (!uvs || uvs.length != n) uvs = new Vector.<Number>(n, true);
 		if (regionRotate) {
 			for (i = 0; i < n; i += 2) {

+ 1 - 1
spine-libgdx/src/com/esotericsoftware/spine/attachments/SkinnedMeshAttachment.java

@@ -70,6 +70,7 @@ public class SkinnedMeshAttachment extends Attachment {
 	}
 
 	public void updateUVs () {
+		float[] regionUVs = this.regionUVs;
 		int verticesLength = regionUVs.length;
 		int worldVerticesLength = verticesLength / 2 * 5;
 		if (worldVertices == null || worldVertices.length != worldVerticesLength) worldVertices = new float[worldVerticesLength];
@@ -84,7 +85,6 @@ public class SkinnedMeshAttachment extends Attachment {
 			width = region.getU2() - u;
 			height = region.getV2() - v;
 		}
-		float[] regionUVs = this.regionUVs;
 		if (region instanceof AtlasRegion && ((AtlasRegion)region).rotate) {
 			for (int i = 0, w = 3; i < verticesLength; i += 2, w += 5) {
 				worldVertices[w] = u + regionUVs[i + 1] * width;