TMX Iso Zorder and TMX Ortho Zorder rendering error in TestCPP.
This commit is contained in:
zhangcheng 2015-12-09 15:07:58 +08:00
parent 2251b52929
commit 2a806a82c6
1 changed files with 1 additions and 3 deletions

View File

@ -189,9 +189,7 @@ void TMXTiledMap::buildWithMapInfo(TMXMapInfo* mapInfo)
idx++;
continue;
}
addChild(child, 0, idx);
child->setOrderOfArrival(idx);
child->setTag(TMXLayerTag);
addChild(child, idx, idx);
// update content size with the max size
const Size& childSize = child->getContentSize();
Size currentSize = this->getContentSize();