mirror of https://github.com/axmolengine/axmol.git
Fixed #8770
This commit is contained in:
parent
9f941efb8f
commit
778701595c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue