[c] Closes #666 (number of the beast), vertex count for non-weighted meshes was incorrect

This commit is contained in:
badlogic 2016-08-10 11:07:47 +02:00
parent 000a06ee09
commit 8fbe0ccd07

View File

@ -511,7 +511,7 @@ static void _readVertices(spSkeletonJson* self, Json* attachmentMap, spVertexAtt
if (self->scale != 1)
for (i = 0; i < entrySize; ++i)
vertices[i] *= self->scale;
attachment->verticesCount = verticesLength;
attachment->verticesCount = verticesLength >> 1;
attachment->vertices = vertices;
attachment->bonesCount = 0;