[c] Closes #1148, count in vertex attachment computation was wrong when stride was <> 2.

This commit is contained in:
badlogic 2018-07-19 16:53:59 +02:00
parent 71c0887dab
commit e897dcafa5

View File

@ -51,7 +51,7 @@ void spVertexAttachment_computeWorldVertices (spVertexAttachment* self, spSlot*
float* vertices;
int* bones;
count += offset;
count = offset + (count >> 1) * stride;
skeleton = slot->bone->skeleton;
deformLength = slot->attachmentVerticesCount;
deform = slot->attachmentVertices;