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); }