mirror of https://github.com/axmolengine/axmol.git
HotFix: fix CCB particle alpha blend
This commit is contained in:
parent
69b38f6e40
commit
458b9b53da
|
@ -127,6 +127,10 @@ void ParticleSystemQuadLoader::onHandlePropTypeBlendFunc(Node * pNode, Node * pP
|
|||
|
||||
void ParticleSystemQuadLoader::onHandlePropTypeTexture(Node * pNode, Node * pParent, const char * pPropertyName, Texture2D * pTexture2D, CCBReader * ccbReader) {
|
||||
if(strcmp(pPropertyName, PROPERTY_TEXTURE) == 0) {
|
||||
if(pTexture2D)
|
||||
{
|
||||
((ParticleSystemQuad *)pNode)->setBlendAdditive(true);
|
||||
}
|
||||
((ParticleSystemQuad *)pNode)->setTexture(pTexture2D);
|
||||
} else {
|
||||
NodeLoader::onHandlePropTypeTexture(pNode, pParent, pPropertyName, pTexture2D, ccbReader);
|
||||
|
|
Loading…
Reference in New Issue