Merge branch '3.8' into 3.9-beta

This commit is contained in:
Harald Csaszar 2020-02-24 15:42:57 +01:00
commit 115478ba8c

View File

@ -332,7 +332,7 @@ namespace Spine.Unity {
bool updateTriangles = SkeletonRendererInstruction.GeometryNotEqual(currentInstructions, smartMesh.instructionUsed);
meshGenerator.Begin();
if (currentInstructions.hasActiveClipping) {
if (currentInstructions.hasActiveClipping && currentInstructions.submeshInstructions.Count > 0) {
meshGenerator.AddSubmesh(currentInstructions.submeshInstructions.Items[0], updateTriangles);
} else {
meshGenerator.BuildMeshWithArrays(currentInstructions, updateTriangles);