This commit is contained in:
pipu 2014-10-17 14:11:15 +08:00 committed by honghui
parent 788c58ec90
commit ebc05f014d
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)