When we move the scene, we need to wait a tick for the blocks to get in place before we move ourselves. Otherwise we get exciting blank regions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@956 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -257,6 +257,7 @@ public class MisoScenePanel extends Sprite
|
||||
|
||||
_objScene.render();
|
||||
|
||||
DelayUtil.delayFrame(function() :void {
|
||||
// Then we let the scene finally move if it's trying to...
|
||||
if (_pendingMoveBy != null) {
|
||||
_isoView.centerOnPt(new Pt(_pendingMoveBy.x + _isoView.currentX,
|
||||
@@ -271,6 +272,7 @@ public class MisoScenePanel extends Sprite
|
||||
_blocks.remove(baseKey).release();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected function refreshScene () :void
|
||||
|
||||
Reference in New Issue
Block a user