Skip to content

Commit db3112d

Browse files
committed
The SceneManager.render will now render a Scene as long as it's in a LOADING state or higher. Before it would only render RUNNING scenes, but this precluded those that were loading assets.
1 parent 9a21b4c commit db3112d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
### Updates
1010

11-
11+
* The SceneManager.render will now render a Scene as long as it's in a LOADING state or higher. Before it would only render RUNNING scenes, but this precluded those that were loading assets.
1212

1313
## Version 3.2.0 - Kaori - 5th March 2018
1414

src/scene/SceneManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ var SceneManager = new Class({
515515
{
516516
var sys = this.scenes[i].sys;
517517

518-
if (sys.settings.visible && (sys.settings.status === CONST.RUNNING || sys.settings.status === CONST.PAUSED))
518+
if (sys.settings.visible && sys.settings.status >= CONST.LOADING && sys.settings.status < CONST.SLEEPING)
519519
{
520520
sys.render(renderer);
521521
}

0 commit comments

Comments
 (0)