[cocos2d-x] Added early out check for MeshAttachment alpha == 0. Related to commit 254baf4. See #1708.

This commit is contained in:
Harald Csaszar 2020-06-22 16:48:14 +02:00
parent 254baf4d75
commit 46a0ffce50

View File

@ -930,6 +930,10 @@ namespace spine {
if (static_cast<RegionAttachment*>(attachment)->getColor().a == 0)
return true;
}
else if (attachment->getRTTI().isExactly(MeshAttachment::rtti)) {
if (static_cast<MeshAttachment*>(attachment)->getColor().a == 0)
return true;
}
return false;
}