src/scene.c

changeset 55
6b61b4899587
parent 51
a656496594f9
child 61
b7954818a6b7
equal deleted inserted replaced
54:cb94d983e3dd 55:6b61b4899587
80 cxIteratorNext(iter); 80 cxIteratorNext(iter);
81 81
82 // update the children and add them to the render groups 82 // update the children and add them to the render groups
83 cx_foreach(AscSceneNode*, node, iter) { 83 cx_foreach(AscSceneNode*, node, iter) {
84 node->depth = iter.depth; 84 node->depth = iter.depth;
85
86 // skip hidden nodes (and all their children)
87 if (node->hidden) {
88 cxTreeVisitorContinue(iter);
89 }
85 90
86 // execute behaviors, first 91 // execute behaviors, first
87 if (node->behaviors != NULL) { 92 if (node->behaviors != NULL) {
88 CxIterator behavior_iter = cxListIterator(node->behaviors); 93 CxIterator behavior_iter = cxListIterator(node->behaviors);
89 cx_foreach(asc_scene_update_func, behavior, behavior_iter) { 94 cx_foreach(asc_scene_update_func, behavior, behavior_iter) {

mercurial