mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed MeshGenerator not updating triangle indices when inactive bone implicitly clears attachment. Closes #1984.
This commit is contained in:
parent
42142a4561
commit
a182cdb169
@ -181,7 +181,10 @@ namespace Spine.Unity {
|
|||||||
var drawOrderItems = drawOrder.Items;
|
var drawOrderItems = drawOrder.Items;
|
||||||
for (int i = 0; i < drawOrderCount; i++) {
|
for (int i = 0; i < drawOrderCount; i++) {
|
||||||
Slot slot = drawOrderItems[i];
|
Slot slot = drawOrderItems[i];
|
||||||
if (!slot.Bone.Active) continue;
|
if (!slot.Bone.Active) {
|
||||||
|
workingAttachmentsItems[i] = null;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (slot.Data.BlendMode == BlendMode.Additive) current.hasPMAAdditiveSlot = true;
|
if (slot.Data.BlendMode == BlendMode.Additive) current.hasPMAAdditiveSlot = true;
|
||||||
Attachment attachment = slot.Attachment;
|
Attachment attachment = slot.Attachment;
|
||||||
|
|
||||||
@ -300,7 +303,10 @@ namespace Spine.Unity {
|
|||||||
var drawOrderItems = drawOrder.Items;
|
var drawOrderItems = drawOrder.Items;
|
||||||
for (int i = 0; i < drawOrderCount; i++) {
|
for (int i = 0; i < drawOrderCount; i++) {
|
||||||
Slot slot = drawOrderItems[i];
|
Slot slot = drawOrderItems[i];
|
||||||
if (!slot.Bone.Active) continue;
|
if (!slot.Bone.Active) {
|
||||||
|
workingAttachmentsItems[i] = null;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (slot.Data.BlendMode == BlendMode.Additive) current.hasPMAAdditiveSlot = true;
|
if (slot.Data.BlendMode == BlendMode.Additive) current.hasPMAAdditiveSlot = true;
|
||||||
Attachment attachment = slot.Attachment;
|
Attachment attachment = slot.Attachment;
|
||||||
#if SPINE_TRIANGLECHECK
|
#if SPINE_TRIANGLECHECK
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user