Quellcode durchsuchen

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

badlogic vor 7 Jahren
Ursprung
Commit
e897dcafa5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
 	int* bones;
 
-	count += offset;
+	count = offset + (count >> 1) * stride;
 	skeleton = slot->bone->skeleton;
 	deformLength = slot->attachmentVerticesCount;
 	deform = slot->attachmentVertices;