You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is migrated from here. It was created at 2014/02/19 07:51:31 +0000
Description
When scene receives onEnterTransitionDidFinish() Director::getRunningScene() returns transition scene BUT not scene that was wrapped.
Current behavior is scene receive onEnterTransitionDidFinish in onExit of Transition, when transition is not finished and runningScene has not been updated yet.
Note
This issue is migrated from here. It was created at 2014/02/19 07:51:31 +0000
Description
When scene receives onEnterTransitionDidFinish() Director::getRunningScene() returns transition scene BUT not scene that was wrapped.
Current behavior is scene receive onEnterTransitionDidFinish in onExit of Transition, when transition is not finished and runningScene has not been updated yet.
Suggested fix:
--- a/cocos/2d/CCDirector.cpp
+++ b/cocos/2d/CCDirector.cpp
@@ -773,9 +773,12 @@ void Director::setNextScene()
_nextScene->retain();
_nextScene = nullptr;
{
}
--- a/cocos/2d/CCTransition.cpp
+++ b/cocos/2d/CCTransition.cpp
@@ -180,7 +180,7 @@ void TransitionScene::onExit()
+// _inScene->onEnterTransitionDidFinish();
}
// custom cleanup
Is Duplicate of Bug pXmlBuffer is not null terminated #4073, please remove this one
The text was updated successfully, but these errors were encountered: