mirror of https://github.com/axmolengine/axmol.git
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:
parent
25806536a2
commit
ab36c433fa
|
@ -108,6 +108,9 @@ CCBReader::CCBReader(CCBReader * pCCBReader)
|
|||
this->mOwnerOutletNames = pCCBReader->mOwnerOutletNames;
|
||||
this->mOwnerOutletNodes = pCCBReader->mOwnerOutletNodes;
|
||||
this->mOwnerOutletNodes->retain();
|
||||
|
||||
this->mCCBRootPath = pCCBReader->getCCBRootPath();
|
||||
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue