Преглед на файлове

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

badlogic преди 7 години
родител
ревизия
e897dcafa5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      spine-c/spine-c/src/spine/VertexAttachment.c

+ 1 - 1
spine-c/spine-c/src/spine/VertexAttachment.c

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