[c] Closes #686, reading weighted path vertices set the wrong vertexCount on the path attachment

This commit is contained in:
badlogic 2016-09-05 14:43:17 +02:00
parent 058b440dd1
commit 65a6d37f5a

View File

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