mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9746 from pandamicro/v3_origin
Current restart game will disable ActionManager
This commit is contained in:
commit
292fff3c29
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue