mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[unity] Fixed compile error after merging 4.2 commit.
This commit is contained in:
parent
92db076394
commit
6a77c6dbf2
@ -605,9 +605,10 @@ namespace Spine.Unity {
|
||||
for (int slotIndex = instruction.startSlot; slotIndex < instruction.endSlot; slotIndex++) {
|
||||
Slot slot = drawOrderItems[slotIndex];
|
||||
SlotPose slotPose = slot.AppliedPose;
|
||||
Color slotC = slotPose.GetColor();
|
||||
if (!slot.Bone.Active
|
||||
#if SLOT_ALPHA_DISABLES_ATTACHMENT
|
||||
|| slot.A == 0f
|
||||
|| slotC.a == 0f
|
||||
#endif
|
||||
) {
|
||||
clipper.ClipEnd(slot);
|
||||
@ -663,7 +664,6 @@ namespace Spine.Unity {
|
||||
}
|
||||
|
||||
float tintBlackAlpha = 1.0f;
|
||||
Color slotC = slotPose.GetColor();
|
||||
Color combinedC = skeletonC * slotC * regionC;
|
||||
if (pmaVertexColors) {
|
||||
float alpha = combinedC.a;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user