Skip to content

Commit

Permalink
fix spritecache plist parsing issue (#19269)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJiang authored and drelaptop committed Jan 17, 2019
1 parent fcf58c7 commit f3a85ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cocos/2d/CCSpriteFrameCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ 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())
{
Expand Down

0 comments on commit f3a85ec

Please sign in to comment.