mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Fixed reading FFD.
This commit is contained in:
parent
cc472d134f
commit
22c58fd8dc
@ -475,11 +475,11 @@ namespace Spine {
|
|||||||
vertices = new float[vertexCount];
|
vertices = new float[vertexCount];
|
||||||
int start = GetInt(valueMap, "offset", 0);
|
int start = GetInt(valueMap, "offset", 0);
|
||||||
if (scale == 1) {
|
if (scale == 1) {
|
||||||
for (int i = start, n = verticesValue.Count; i < n; i++)
|
for (int i = 0, n = verticesValue.Count; i < n; i++)
|
||||||
vertices[i] = (float)verticesValue[i];
|
vertices[i + start] = (float)verticesValue[i];
|
||||||
} else {
|
} else {
|
||||||
for (int i = start, n = i + verticesValue.Count; i < n; i++)
|
for (int i = 0, n = verticesValue.Count; i < n; i++)
|
||||||
vertices[i] = (float)verticesValue[i] * scale;
|
vertices[i + start] = (float)verticesValue[i] * scale;
|
||||||
}
|
}
|
||||||
if (attachment is MeshAttachment) {
|
if (attachment is MeshAttachment) {
|
||||||
float[] meshVertices = ((MeshAttachment)attachment).vertices;
|
float[] meshVertices = ((MeshAttachment)attachment).vertices;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user