This commit is contained in:
pipu 2014-10-17 14:11:15 +08:00
parent 9f941efb8f
commit 778701595c
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ void SceneEditorTestLayer::changeLoadTypeCallback(cocos2d::Ref *pSender)
if(_rootNode != nullptr)
{
ActionManagerEx::getInstance()->releaseActions();
this->removeChild(_rootNode);
_rootNode = SceneReader::getInstance()->createNodeWithSceneFile(_filePath.c_str());
if (_rootNode == nullptr)