mirror of https://github.com/axmolengine/axmol.git
Fix director restart issue
This commit is contained in:
parent
3177f3431e
commit
bbf89cf016
|
@ -1049,6 +1049,9 @@ void Director::restartDirector()
|
||||||
|
|
||||||
// release the objects
|
// release the objects
|
||||||
PoolManager::getInstance()->getCurrentPool()->clear();
|
PoolManager::getInstance()->getCurrentPool()->clear();
|
||||||
|
|
||||||
|
// Restart animation
|
||||||
|
startAnimation();
|
||||||
|
|
||||||
// Real restart in script level
|
// Real restart in script level
|
||||||
#if CC_ENABLE_SCRIPT_BINDING
|
#if CC_ENABLE_SCRIPT_BINDING
|
||||||
|
|
Loading…
Reference in New Issue