mirror of https://github.com/axmolengine/axmol.git
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:
commit
1ae4de2374
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue