From 1e15131b2b2f50a2e3f7ecaba58900d18d416520 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 7 Aug 2014 16:24:44 +0800 Subject: [PATCH] simplify code --- cocos/base/CCDirector.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 97178daf5b..2355897eb6 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -322,11 +322,7 @@ void Director::drawScene() popMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); } _currentCamera = nullptr; - } - - // draw the scene - if (_runningScene) - { + _eventDispatcher->dispatchEvent(_eventAfterVisit); }