From a7a4497a5ff0867e91e0f987c07db92527e83fbc Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Tue, 31 Aug 2010 00:22:16 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/miso/client/MisoScenePanel.as | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/miso/client/MisoScenePanel.as b/src/as/com/threerings/miso/client/MisoScenePanel.as index 6f859a20..2bc86e10 100644 --- a/src/as/com/threerings/miso/client/MisoScenePanel.as +++ b/src/as/com/threerings/miso/client/MisoScenePanel.as @@ -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); }