fix sub ccb node resource root path bug

When load sub ccb type node , create a new ccbreader from parent
ccbreader. Should copy ccbRootPath from parent, otherwise, load
resource will fail if sub ccb node resource use special path
This commit is contained in:
wtyqm 2013-06-27 09:41:38 +08:00
parent 25806536a2
commit ab36c433fa
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ CCBReader::CCBReader(CCBReader * pCCBReader)
this->mOwnerOutletNames = pCCBReader->mOwnerOutletNames;
this->mOwnerOutletNodes = pCCBReader->mOwnerOutletNodes;
this->mOwnerOutletNodes->retain();
this->mCCBRootPath = pCCBReader->getCCBRootPath();
init();
}