mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4326 from dabingnn/develop_hotFix
[ci skip]Develop hot fix
This commit is contained in:
commit
bd00e6fabb
|
@ -127,7 +127,11 @@ 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) {
|
||||
((ParticleSystemQuad *)pNode)->setTexture(pTexture2D);
|
||||
static_cast<ParticleSystemQuad*>(pNode)->setTexture(pTexture2D);
|
||||
if(pTexture2D)
|
||||
{
|
||||
static_cast<ParticleSystemQuad*>(pNode)->setBlendAdditive(true);
|
||||
}
|
||||
} else {
|
||||
NodeLoader::onHandlePropTypeTexture(pNode, pParent, pPropertyName, pTexture2D, ccbReader);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue