Explorar o código

[monogame] Fixed skin bones of other skins not being excluded in renderer. See #841.

Harald Csaszar hai 5 meses
pai
achega
dcf19f7021
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      spine-monogame/spine-monogame/src/SkeletonRenderer.cs

+ 5 - 0
spine-monogame/spine-monogame/src/SkeletonRenderer.cs

@@ -121,6 +121,11 @@ namespace Spine {
 
 			for (int i = 0, n = drawOrder.Count; i < n; i++) {
 				Slot slot = drawOrderItems[i];
+				if (!slot.Bone.Active) {
+					clipper.ClipEnd(slot);
+					continue;
+				}
+
 				Attachment attachment = slot.Attachment;
 				float attachmentZOffset = z + zSpacing * i;