Report unexpected visibility more sensibly.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2491 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-04-28 20:28:45 +00:00
parent 120c2643ef
commit da3ec5f6e4
@@ -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 + ".");
}
}
/**