[Unity] Fixed no renderables causing errors.

This commit is contained in:
John 2016-05-09 03:18:07 +08:00
parent d7fb4f35ec
commit f695cf19c2

View File

@ -344,6 +344,7 @@ namespace Spine.Unity {
submeshVertexCount += attachmentVertexCount;
}
if (submeshVertexCount != 0) {
workingSubmeshInstructions.Add(
new Spine.Unity.MeshGeneration.SubmeshInstruction {
skeleton = this.skeleton,
@ -356,6 +357,7 @@ namespace Spine.Unity {
forceSeparate = false
}
);
}
workingInstruction.vertexCount = vertexCount;
workingInstruction.immutableTriangles = this.immutableTriangles;