mirror of https://github.com/axmolengine/axmol.git
Uses the new Vector<>. Code is more robust!
This commit is contained in:
parent
6a034a91f1
commit
c617eee505
|
@ -68,11 +68,8 @@ static void printSceneGraph(int fd, Node* node, int level)
|
||||||
|
|
||||||
mydprintf(fd, " %s: z=%d, tag=%d\n", node->description(), node->getZOrder(), node->getTag());
|
mydprintf(fd, " %s: z=%d, tag=%d\n", node->description(), node->getZOrder(), node->getTag());
|
||||||
|
|
||||||
auto children = node->getChildren();
|
for(const auto& child: node->getChildren())
|
||||||
if( children ) {
|
printSceneGraph(fd, child, level+1);
|
||||||
for(const auto& child: *children)
|
|
||||||
printSceneGraph(fd, static_cast<Node*>(child), level+1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void printSceneGraphBoot(int fd)
|
static void printSceneGraphBoot(int fd)
|
||||||
|
|
Loading…
Reference in New Issue