mirror of https://github.com/axmolengine/axmol.git
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:
commit
5c58a8224c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue