mirror of https://github.com/axmolengine/axmol.git
format code
This commit is contained in:
parent
1942a27a5c
commit
42e7e3bbe8
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue