[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:00 +02:00
parent 0284abe548
commit 8a14924859

View File

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