Merge pull request #9797 from doomsdayer/v3

Bug fix:When parsing a plist file as image mergin, if in fact the plist ...
This commit is contained in:
minggo 2015-01-05 18:05:51 +08:00
commit 1ae4de2374
1 changed files with 2 additions and 0 deletions

View File

@ -1332,6 +1332,8 @@ void DataReaderHelper::addDataFromJsonCache(const std::string& fileContent, Data
{
std::string plistPath = filePath + ".plist";
std::string pngPath = filePath + ".png";
ValueMap dict = FileUtils::getInstance()->getValueMapFromFile(dataInfo->baseFilePath + plistPath);
if (dict.find("particleLifespan") != dict.end()) continue;
ArmatureDataManager::getInstance()->addSpriteFrameFromFile((dataInfo->baseFilePath + plistPath).c_str(), (dataInfo->baseFilePath + pngPath).c_str(), dataInfo->filename.c_str());
}