mirror of https://github.com/axmolengine/axmol.git
fixed #1662: Getting full path will fail if texture name in the plist is without relative path.
This commit is contained in:
parent
cc2865e294
commit
f70e4db254
|
@ -323,6 +323,13 @@ bool CCParticleSystem::initWithDictionary(CCDictionary *dictionary, const char *
|
|||
textureName = string(dirname) + textureName;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dirname != NULL)
|
||||
{
|
||||
textureName = string(dirname) + textureName;
|
||||
}
|
||||
}
|
||||
|
||||
CCTexture2D *tex = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue