Jelajahi Sumber

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

Harald Csaszar 5 bulan lalu
induk
melakukan
dcf19f7021
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  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++) {
 			for (int i = 0, n = drawOrder.Count; i < n; i++) {
 				Slot slot = drawOrderItems[i];
 				Slot slot = drawOrderItems[i];
+				if (!slot.Bone.Active) {
+					clipper.ClipEnd(slot);
+					continue;
+				}
+
 				Attachment attachment = slot.Attachment;
 				Attachment attachment = slot.Attachment;
 				float attachmentZOffset = z + zSpacing * i;
 				float attachmentZOffset = z + zSpacing * i;