mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 02:36:56 +08:00
[Unity] Fixed no renderables causing errors.
This commit is contained in:
parent
d7fb4f35ec
commit
f695cf19c2
@ -344,18 +344,20 @@ namespace Spine.Unity {
|
|||||||
submeshVertexCount += attachmentVertexCount;
|
submeshVertexCount += attachmentVertexCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
workingSubmeshInstructions.Add(
|
if (submeshVertexCount != 0) {
|
||||||
new Spine.Unity.MeshGeneration.SubmeshInstruction {
|
workingSubmeshInstructions.Add(
|
||||||
skeleton = this.skeleton,
|
new Spine.Unity.MeshGeneration.SubmeshInstruction {
|
||||||
material = lastMaterial,
|
skeleton = this.skeleton,
|
||||||
startSlot = submeshStartSlotIndex,
|
material = lastMaterial,
|
||||||
endSlot = drawOrderCount,
|
startSlot = submeshStartSlotIndex,
|
||||||
triangleCount = submeshTriangleCount,
|
endSlot = drawOrderCount,
|
||||||
firstVertexIndex = submeshFirstVertex,
|
triangleCount = submeshTriangleCount,
|
||||||
vertexCount = submeshVertexCount,
|
firstVertexIndex = submeshFirstVertex,
|
||||||
forceSeparate = false
|
vertexCount = submeshVertexCount,
|
||||||
}
|
forceSeparate = false
|
||||||
);
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
workingInstruction.vertexCount = vertexCount;
|
workingInstruction.vertexCount = vertexCount;
|
||||||
workingInstruction.immutableTriangles = this.immutableTriangles;
|
workingInstruction.immutableTriangles = this.immutableTriangles;
|
||||||
@ -1009,4 +1011,4 @@ namespace Spine.Unity {
|
|||||||
public int firstVertex = -1;
|
public int firstVertex = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user