Only set Scene status to running if still in creating

This commit is contained in:
Richard Davey 2018-06-13 17:27:30 +01:00
parent 91b3c7a92d
commit 19eb363a84

View file

@ -607,9 +607,9 @@ var SceneManager = new Class({
if (scene.create)
{
scene.sys.settings.status = CONST.CREATING;
settings.status = CONST.CREATING;
scene.create.call(scene, scene.sys.settings.data);
scene.create.call(scene, settings.data);
if (settings.isTransition)
{
@ -623,7 +623,10 @@ var SceneManager = new Class({
sys.sceneUpdate = scene.update;
}
settings.status = CONST.RUNNING;
if (settings.status === CONST.CREATING)
{
settings.status = CONST.RUNNING;
}
},
/**