Merge pull request #1858 from dumganhar/iss1662-particle-fullpath

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-16 19:48:52 -08:00
commit 822dde27ef
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;