mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
[c] Closes #686, reading weighted path vertices set the wrong vertexCount on the path attachment
This commit is contained in:
parent
058b440dd1
commit
65a6d37f5a
@ -956,7 +956,6 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
|
||||
path->constantSpeed = Json_getInt(attachmentMap, "constantSpeed", 1);
|
||||
vertexCount = Json_getInt(attachmentMap, "vertexCount", 0);
|
||||
_readVertices(self, attachmentMap, SUPER(path), vertexCount << 1);
|
||||
path->super.verticesCount = vertexCount;
|
||||
|
||||
path->lengthsLength = vertexCount / 3;
|
||||
path->lengths = MALLOC(float, path->lengthsLength);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user