From da3ec5f6e431b66fbe6f60be08a0e146bae7a760 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 28 Apr 2003 20:28:45 +0000 Subject: [PATCH] Report unexpected visibility more sensibly. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2491 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/miso/client/MisoScenePanel.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/java/com/threerings/miso/client/MisoScenePanel.java b/src/java/com/threerings/miso/client/MisoScenePanel.java index 41ef898eb..c5bc7f7a6 100644 --- a/src/java/com/threerings/miso/client/MisoScenePanel.java +++ b/src/java/com/threerings/miso/client/MisoScenePanel.java @@ -1,5 +1,5 @@ // -// $Id: MisoScenePanel.java,v 1.18 2003/04/28 18:12:09 mdb Exp $ +// $Id: MisoScenePanel.java,v 1.19 2003/04/28 20:28:45 mdb Exp $ package com.threerings.miso.client; @@ -656,6 +656,11 @@ public class MisoScenePanel extends VirtualMediaPanel */ protected void blockResolved (SceneBlock block) { + Rectangle sbounds = block.getScreenBounds(); + if (!_delayRepaint && sbounds != null && sbounds.intersects(_vbounds)) { + Log.warning("Block visible during resolution " + block + "."); + } + // once all the pending blocks have completed their resolution, // recompute our visible object set if (--_pendingBlocks == 0) { @@ -663,14 +668,6 @@ public class MisoScenePanel extends VirtualMediaPanel _delayRepaint = false; _remgr.invalidateRegion(_vbounds); } - - // if this block has objects that intersect our visible bounds - // (zoiks!) then repaint - Rectangle sbounds = block.getScreenBounds(); - if (sbounds != null && sbounds.intersects(_vbounds)) { -// Log.info("Eek, block came into view during resolution " + -// block + "."); - } } /**