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:
Mike Thomas
2010-08-31 00:22:16 +00:00
parent da3e323e15
commit a7a4497a5f
@@ -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);
}