mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 19:11:36 +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++) {
|
for (int slotIndex = instruction.startSlot; slotIndex < instruction.endSlot; slotIndex++) {
|
||||||
Slot slot = drawOrderItems[slotIndex];
|
Slot slot = drawOrderItems[slotIndex];
|
||||||
SlotPose slotPose = slot.AppliedPose;
|
SlotPose slotPose = slot.AppliedPose;
|
||||||
|
Color slotC = slotPose.GetColor();
|
||||||
if (!slot.Bone.Active
|
if (!slot.Bone.Active
|
||||||
#if SLOT_ALPHA_DISABLES_ATTACHMENT
|
#if SLOT_ALPHA_DISABLES_ATTACHMENT
|
||||||
|| slot.A == 0f
|
|| slotC.a == 0f
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
clipper.ClipEnd(slot);
|
clipper.ClipEnd(slot);
|
||||||
@ -663,7 +664,6 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
float tintBlackAlpha = 1.0f;
|
float tintBlackAlpha = 1.0f;
|
||||||
Color slotC = slotPose.GetColor();
|
|
||||||
Color combinedC = skeletonC * slotC * regionC;
|
Color combinedC = skeletonC * slotC * regionC;
|
||||||
if (pmaVertexColors) {
|
if (pmaVertexColors) {
|
||||||
float alpha = combinedC.a;
|
float alpha = combinedC.a;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user