Эх сурвалжийг харах

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

Harald Csaszar 7 сар өмнө
parent
commit
dcf19f7021

+ 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;