diff --git a/cocos/editor-support/cocosbuilder/CCNodeLoader.cpp b/cocos/editor-support/cocosbuilder/CCNodeLoader.cpp index 7eba8e9340..9677102a59 100644 --- a/cocos/editor-support/cocosbuilder/CCNodeLoader.cpp +++ b/cocos/editor-support/cocosbuilder/CCNodeLoader.cpp @@ -29,7 +29,11 @@ Dictionary* NodeLoader::getCustomProperties() Node * NodeLoader::loadNode(Node * pParent, CCBReader * ccbReader) { Node * ccNode = this->createNode(pParent, ccbReader); - //this->parseProperties(ccNode, pParent, ccbReader); + //clear _customProperties, ready for load next node. + if (_customProperties != nullptr) + { + _customProperties->removeAllObjects(); + } return ccNode; }