This commit is contained in:
NathanSweet 2014-05-25 08:55:14 +02:00
parent 8887677cd7
commit ab15078b3e
4 changed files with 4 additions and 4 deletions

View File

@ -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. */

View File

@ -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) {

View File

@ -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) {

View File

@ -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;