mirror of https://github.com/axmolengine/axmol.git
Fixing bug where it doesn't use embedded texture data, if texture filename is not available
This commit is contained in:
parent
287b5575f4
commit
be305f84b6
|
@ -338,8 +338,7 @@ bool CCParticleSystem::initWithDictionary(CCDictionary *dictionary, const char *
|
|||
// set not pop-up message box when load image failed
|
||||
bool bNotify = CCFileUtils::sharedFileUtils()->isPopupNotify();
|
||||
CCFileUtils::sharedFileUtils()->setPopupNotify(false);
|
||||
tex = CCTextureCache::sharedTextureCache()->addImage(textureName.c_str());
|
||||
|
||||
tex = CCTextureCache::sharedTextureCache()->textureForKey(textureName.c_str());
|
||||
// reset the value of UIImage notify
|
||||
CCFileUtils::sharedFileUtils()->setPopupNotify(bNotify);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue