Fix potential stackoverflow.
Refreshing the scene can otherwise cascade back through loaded back through itself. Instead, wait til all the ones on our current frame are done and then refresh. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1009 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -287,10 +287,12 @@ public class MisoScenePanel extends Sprite
|
||||
{
|
||||
_model = model;
|
||||
_ctx.getTileManager().ensureLoaded(_model.getAllTilesets(), function() :void {
|
||||
refreshScene();
|
||||
DelayUtil.delayFrame(function() :void {
|
||||
removeChild(_loading);
|
||||
addChild(_isoView);
|
||||
refreshScene();
|
||||
DelayUtil.delayFrame(function() :void {
|
||||
removeChild(_loading);
|
||||
addChild(_isoView);
|
||||
});
|
||||
});
|
||||
}, loadingProgress);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user