format code

This commit is contained in:
yangxiao 2014-08-14 14:11:00 +08:00
parent 1942a27a5c
commit 42e7e3bbe8
1 changed files with 6 additions and 7 deletions

View File

@ -603,19 +603,18 @@ void ScrollView::visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t
// this draw // this draw
if (visibleByCamera) if (visibleByCamera)
this->draw(renderer, _modelViewTransform, flags); this->draw(renderer, _modelViewTransform, flags);
// draw children zOrder >= 0 // draw children zOrder >= 0
for( ; i < _children.size(); i++ ) for( ; i < _children.size(); i++ )
{ {
Node *child = _children.at(i); Node *child = _children.at(i);
child->visit(renderer, _modelViewTransform, flags); child->visit(renderer, _modelViewTransform, flags);
} }
}
}
else if (visibleByCamera) else if (visibleByCamera)
{ {
this->draw(renderer, _modelViewTransform, flags); this->draw(renderer, _modelViewTransform, flags);
} }
this->afterDraw(); this->afterDraw();