mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[as3] Don't submit meshes with alpha==0. Closes #1080
This commit is contained in:
parent
7647c345e3
commit
63b27b9f46
Binary file not shown.
@ -158,6 +158,10 @@ package spine.starling {
|
||||
}
|
||||
|
||||
a = slot.color.a * attachmentColor.a;
|
||||
if (a == 0) {
|
||||
clipper.clipEndWithSlot(slot);
|
||||
continue;
|
||||
}
|
||||
rgb = Color.rgb(r * slot.color.r * attachmentColor.r, g * slot.color.g * attachmentColor.g, b * slot.color.b * attachmentColor.b);
|
||||
if (slot.darkColor == null) dark = Color.rgb(0, 0, 0);
|
||||
else dark = Color.rgb(slot.darkColor.r * 255, slot.darkColor.g * 255, slot.darkColor.b * 255);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user