Merge pull request #9746 from pandamicro/v3_origin

Current restart game will disable ActionManager
This commit is contained in:
minggo 2014-12-31 15:50:33 +08:00
commit 292fff3c29
1 changed files with 3 additions and 0 deletions

View File

@ -1042,6 +1042,9 @@ void Director::restartDirector()
// Texture cache need to be reinitialized
initTextureCache();
// Reschedule for action manager
getScheduler()->scheduleUpdate(getActionManager(), Scheduler::PRIORITY_SYSTEM, false);
// release the objects
PoolManager::getInstance()->getCurrentPool()->clear();