mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 06:14:53 +08:00
[unity] Fixed MeshGenerator not updating triangle indices when inactive bone implicitly clears attachment. See #1984.
This commit is contained in:
parent
287825dab5
commit
baf30f0ff5
@ -180,7 +180,10 @@ namespace Spine.Unity {
|
||||
var drawOrderItems = drawOrder.Items;
|
||||
for (int i = 0; i < drawOrderCount; i++) {
|
||||
Slot slot = drawOrderItems[i];
|
||||
if (!slot.bone.active) continue;
|
||||
if (!slot.bone.active) {
|
||||
workingAttachmentsItems[i] = null;
|
||||
continue;
|
||||
}
|
||||
Attachment attachment = slot.attachment;
|
||||
|
||||
workingAttachmentsItems[i] = attachment;
|
||||
@ -299,7 +302,10 @@ namespace Spine.Unity {
|
||||
var drawOrderItems = drawOrder.Items;
|
||||
for (int i = 0; i < drawOrderCount; i++) {
|
||||
Slot slot = drawOrderItems[i];
|
||||
if (!slot.bone.active) continue;
|
||||
if (!slot.bone.active) {
|
||||
workingAttachmentsItems[i] = null;
|
||||
continue;
|
||||
}
|
||||
Attachment attachment = slot.attachment;
|
||||
#if SPINE_TRIANGLECHECK
|
||||
workingAttachmentsItems[i] = attachment;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user