Sync mssing code from official-v3

This commit is contained in:
halx99 2020-08-18 14:43:09 +08:00
parent a567820461
commit 927f05f670
1 changed files with 3 additions and 0 deletions

View File

@ -353,6 +353,9 @@ void SpriteFrameCache::addSpriteFramesWithFile(const std::string& plist)
{
CCASSERT(!plist.empty(), "plist filename should not be nullptr");
if (_spriteFramesCache.isPlistFull(plist))
return;
std::string fullPath = FileUtils::getInstance()->fullPathForFilename(plist);
if (fullPath.empty())
{