mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts] Closes #914, loading of PathAttachment lengths in SkeletonJson was incorrect
This commit is contained in:
parent
fcf9d3bb35
commit
54cb4dfa02
@ -4954,7 +4954,7 @@ var spine;
|
|||||||
this.readVertices(map, path, vertexCount << 1);
|
this.readVertices(map, path, vertexCount << 1);
|
||||||
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
||||||
for (var i = 0; i < map.lengths.length; i++)
|
for (var i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
var color = this.getValue(map, "color", null);
|
var color = this.getValue(map, "color", null);
|
||||||
if (color != null)
|
if (color != null)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4954,7 +4954,7 @@ var spine;
|
|||||||
this.readVertices(map, path, vertexCount << 1);
|
this.readVertices(map, path, vertexCount << 1);
|
||||||
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
||||||
for (var i = 0; i < map.lengths.length; i++)
|
for (var i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
var color = this.getValue(map, "color", null);
|
var color = this.getValue(map, "color", null);
|
||||||
if (color != null)
|
if (color != null)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4634,7 +4634,7 @@ var spine;
|
|||||||
this.readVertices(map, path, vertexCount << 1);
|
this.readVertices(map, path, vertexCount << 1);
|
||||||
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
||||||
for (var i = 0; i < map.lengths.length; i++)
|
for (var i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
var color = this.getValue(map, "color", null);
|
var color = this.getValue(map, "color", null);
|
||||||
if (color != null)
|
if (color != null)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4634,7 +4634,7 @@ var spine;
|
|||||||
this.readVertices(map, path, vertexCount << 1);
|
this.readVertices(map, path, vertexCount << 1);
|
||||||
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
||||||
for (var i = 0; i < map.lengths.length; i++)
|
for (var i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
var color = this.getValue(map, "color", null);
|
var color = this.getValue(map, "color", null);
|
||||||
if (color != null)
|
if (color != null)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4634,7 +4634,7 @@ var spine;
|
|||||||
this.readVertices(map, path, vertexCount << 1);
|
this.readVertices(map, path, vertexCount << 1);
|
||||||
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
||||||
for (var i = 0; i < map.lengths.length; i++)
|
for (var i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
var color = this.getValue(map, "color", null);
|
var color = this.getValue(map, "color", null);
|
||||||
if (color != null)
|
if (color != null)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4634,7 +4634,7 @@ var spine;
|
|||||||
this.readVertices(map, path, vertexCount << 1);
|
this.readVertices(map, path, vertexCount << 1);
|
||||||
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
var lengths = spine.Utils.newArray(vertexCount / 3, 0);
|
||||||
for (var i = 0; i < map.lengths.length; i++)
|
for (var i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
var color = this.getValue(map, "color", null);
|
var color = this.getValue(map, "color", null);
|
||||||
if (color != null)
|
if (color != null)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -324,7 +324,7 @@ module spine {
|
|||||||
|
|
||||||
let lengths: Array<number> = Utils.newArray(vertexCount / 3, 0);
|
let lengths: Array<number> = Utils.newArray(vertexCount / 3, 0);
|
||||||
for (let i = 0; i < map.lengths.length; i++)
|
for (let i = 0; i < map.lengths.length; i++)
|
||||||
lengths[i++] = map.lengths[i] * scale;
|
lengths[i] = map.lengths[i] * scale;
|
||||||
path.lengths = lengths;
|
path.lengths = lengths;
|
||||||
|
|
||||||
let color: string = this.getValue(map, "color", null);
|
let color: string = this.getValue(map, "color", null);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user