mirror of https://github.com/axmolengine/axmol.git
Fixed #8770
This commit is contained in:
parent
788c58ec90
commit
ebc05f014d
|
@ -214,6 +214,7 @@ void SceneEditorTestLayer::changeLoadTypeCallback(cocos2d::Ref *pSender)
|
||||||
|
|
||||||
if(_rootNode != nullptr)
|
if(_rootNode != nullptr)
|
||||||
{
|
{
|
||||||
|
ActionManagerEx::getInstance()->releaseActions();
|
||||||
this->removeChild(_rootNode);
|
this->removeChild(_rootNode);
|
||||||
_rootNode = SceneReader::getInstance()->createNodeWithSceneFile(_filePath.c_str());
|
_rootNode = SceneReader::getInstance()->createNodeWithSceneFile(_filePath.c_str());
|
||||||
if (_rootNode == nullptr)
|
if (_rootNode == nullptr)
|
||||||
|
|
Loading…
Reference in New Issue