mirror of https://github.com/axmolengine/axmol.git
fix binary test crash bug
This commit is contained in:
parent
1a2caaeebf
commit
441f0ebca8
|
@ -1546,7 +1546,7 @@ void TestLoadFromBinary::onTouchesEnded(const std::vector<Touch*>& touches, Even
|
||||||
|
|
||||||
// remove json created
|
// remove json created
|
||||||
// remove sync resource
|
// remove sync resource
|
||||||
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson");
|
ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[0]);
|
||||||
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson");
|
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson");
|
||||||
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/hero.ExportJson");
|
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/hero.ExportJson");
|
||||||
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/horse.ExportJson");
|
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/horse.ExportJson");
|
||||||
|
@ -1557,11 +1557,6 @@ void TestLoadFromBinary::onTouchesEnded(const std::vector<Touch*>& touches, Even
|
||||||
ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[i]);
|
ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int i = 0; i < BINARYFILECOUNT; i++)
|
|
||||||
{
|
|
||||||
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/testEasing.csb");
|
|
||||||
}
|
|
||||||
|
|
||||||
for( int i = 0; i < BINARYFILECOUNT; i++)
|
for( int i = 0; i < BINARYFILECOUNT; i++)
|
||||||
{
|
{
|
||||||
ArmatureDataManager::getInstance()->addArmatureFileInfoAsync(m_binaryFilesNames[i], this, schedule_selector(TestLoadFromBinary::dataLoaded));
|
ArmatureDataManager::getInstance()->addArmatureFileInfoAsync(m_binaryFilesNames[i], this, schedule_selector(TestLoadFromBinary::dataLoaded));
|
||||||
|
|
Loading…
Reference in New Issue