fixed #1662: Getting full path will fail if texture name in the plist is without relative path.

This commit is contained in:
James Chen 2013-01-17 11:42:41 +08:00
parent cc2865e294
commit f70e4db254
1 changed files with 7 additions and 0 deletions

View File

@ -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;