We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a42c842 commit b706d9eCopy full SHA for b706d9e
cocos/2d/CCSpriteFrameCache.cpp
@@ -375,6 +375,11 @@ void SpriteFrameCache::addSpriteFramesWithFile(const std::string& plist)
375
{
376
CCASSERT(!plist.empty(), "plist filename should not be nullptr");
377
378
+ if (_spriteFramesCache.isPlistFull(plist))
379
+ {
380
+ return;
381
+ }
382
+
383
std::string fullPath = FileUtils::getInstance()->fullPathForFilename(plist);
384
if (fullPath.empty())
385
0 commit comments