[unity] Fix clipping subsets of submeshes.

This commit is contained in:
pharan 2018-05-11 06:31:58 +08:00
parent afc0b3ff4e
commit 0c24e5e2d3

View File

@ -1397,7 +1397,7 @@ namespace Spine.Unity {
var instruction = instructionsItems[startSubmesh + i];
submeshesItems[i] = instruction;
#if SPINE_TRIANGLECHECK
this.hasActiveClipping = instruction.hasClipping;
this.hasActiveClipping |= instruction.hasClipping;
submeshesItems[i].rawFirstVertexIndex = runningVertexCount; // Ensure current instructions have correct cached values.
runningVertexCount += instruction.rawVertexCount; // vertexCount will also be used for the rest of this method.
#endif