|
@@ -344,18 +344,20 @@ namespace Spine.Unity {
|
|
|
submeshVertexCount += attachmentVertexCount;
|
|
|
}
|
|
|
|
|
|
- workingSubmeshInstructions.Add(
|
|
|
- new Spine.Unity.MeshGeneration.SubmeshInstruction {
|
|
|
- skeleton = this.skeleton,
|
|
|
- material = lastMaterial,
|
|
|
- startSlot = submeshStartSlotIndex,
|
|
|
- endSlot = drawOrderCount,
|
|
|
- triangleCount = submeshTriangleCount,
|
|
|
- firstVertexIndex = submeshFirstVertex,
|
|
|
- vertexCount = submeshVertexCount,
|
|
|
- forceSeparate = false
|
|
|
- }
|
|
|
- );
|
|
|
+ if (submeshVertexCount != 0) {
|
|
|
+ workingSubmeshInstructions.Add(
|
|
|
+ new Spine.Unity.MeshGeneration.SubmeshInstruction {
|
|
|
+ skeleton = this.skeleton,
|
|
|
+ material = lastMaterial,
|
|
|
+ startSlot = submeshStartSlotIndex,
|
|
|
+ endSlot = drawOrderCount,
|
|
|
+ triangleCount = submeshTriangleCount,
|
|
|
+ firstVertexIndex = submeshFirstVertex,
|
|
|
+ vertexCount = submeshVertexCount,
|
|
|
+ forceSeparate = false
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
|
|
|
workingInstruction.vertexCount = vertexCount;
|
|
|
workingInstruction.immutableTriangles = this.immutableTriangles;
|
|
@@ -1009,4 +1011,4 @@ namespace Spine.Unity {
|
|
|
public int firstVertex = -1;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|