mirror of https://github.com/axmolengine/axmol.git
Sync mssing code from official-v3
This commit is contained in:
parent
a567820461
commit
927f05f670
|
@ -353,6 +353,9 @@ void SpriteFrameCache::addSpriteFramesWithFile(const std::string& plist)
|
||||||
{
|
{
|
||||||
CCASSERT(!plist.empty(), "plist filename should not be nullptr");
|
CCASSERT(!plist.empty(), "plist filename should not be nullptr");
|
||||||
|
|
||||||
|
if (_spriteFramesCache.isPlistFull(plist))
|
||||||
|
return;
|
||||||
|
|
||||||
std::string fullPath = FileUtils::getInstance()->fullPathForFilename(plist);
|
std::string fullPath = FileUtils::getInstance()->fullPathForFilename(plist);
|
||||||
if (fullPath.empty())
|
if (fullPath.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue