[unity] Fixed a clipping bug when there are two clipping meshes and clipping-end-slot is a skin bone that is disabled (Clipping.endClipping not called when slot.bone.active==false). See #1694.

This commit is contained in:
Harald Csaszar 2020-06-05 21:21:08 +02:00
parent 54b8039f1a
commit 1707c8ce42

View File

@ -503,7 +503,10 @@ namespace Spine.Unity {
for (int slotIndex = instruction.startSlot; slotIndex < instruction.endSlot; slotIndex++) {
var slot = drawOrderItems[slotIndex];
if (!slot.bone.active) continue;
if (!slot.bone.active) {
clipper.ClipEnd(slot);
continue;
}
var attachment = slot.attachment;
float z = zSpacing * slotIndex;