| 85 CxTreeVisitor iter = cx_tree_visitor(scene->root, |
85 CxTreeVisitor iter = cx_tree_visitor(scene->root, |
| 86 offsetof(AscSceneNode, children), |
86 offsetof(AscSceneNode, children), |
| 87 offsetof(AscSceneNode, next) |
87 offsetof(AscSceneNode, next) |
| 88 ); |
88 ); |
| 89 cx_foreach(AscSceneNode*, node, iter) { |
89 cx_foreach(AscSceneNode*, node, iter) { |
| 90 node->depth = iter.depth; |
|
| 91 |
|
| 92 // skip hidden nodes (and all their children) |
90 // skip hidden nodes (and all their children) |
| 93 if (asc_test_flag(node->flags, ASC_SCENE_NODE_HIDDEN)) { |
91 if (asc_test_flag(node->flags, ASC_SCENE_NODE_HIDDEN)) { |
| 94 cxTreeVisitorContinue(iter); |
92 cxTreeVisitorContinue(iter); |
| 95 } |
93 } |
| 96 |
94 |