From 42e7e3bbe81ac9c05863669268e7afc058825fc3 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 14 Aug 2014 14:11:00 +0800 Subject: [PATCH] format code --- extensions/GUI/CCScrollView/CCScrollView.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/extensions/GUI/CCScrollView/CCScrollView.cpp b/extensions/GUI/CCScrollView/CCScrollView.cpp index 6c2862b3f0..da6de500af 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.cpp +++ b/extensions/GUI/CCScrollView/CCScrollView.cpp @@ -603,19 +603,18 @@ void ScrollView::visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t // this draw if (visibleByCamera) - this->draw(renderer, _modelViewTransform, flags); + this->draw(renderer, _modelViewTransform, flags); - // draw children zOrder >= 0 - for( ; i < _children.size(); i++ ) + // draw children zOrder >= 0 + for( ; i < _children.size(); i++ ) { Node *child = _children.at(i); child->visit(renderer, _modelViewTransform, flags); - } - - } + } + } else if (visibleByCamera) { - this->draw(renderer, _modelViewTransform, flags); + this->draw(renderer, _modelViewTransform, flags); } this->afterDraw();