Merge pull request #4168 from xhcnb/fix_ccb_nodeloader

[ci skip]Fix a bug:we can use 'Custom Class' in CocosBuilder, and assign custom p...
This commit is contained in:
minggo 2013-11-13 19:46:08 -08:00
commit 5c58a8224c
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}