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:
@@ -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;
|
package com.threerings.miso.client;
|
||||||
|
|
||||||
@@ -656,6 +656,11 @@ public class MisoScenePanel extends VirtualMediaPanel
|
|||||||
*/
|
*/
|
||||||
protected void blockResolved (SceneBlock block)
|
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,
|
// once all the pending blocks have completed their resolution,
|
||||||
// recompute our visible object set
|
// recompute our visible object set
|
||||||
if (--_pendingBlocks == 0) {
|
if (--_pendingBlocks == 0) {
|
||||||
@@ -663,14 +668,6 @@ public class MisoScenePanel extends VirtualMediaPanel
|
|||||||
_delayRepaint = false;
|
_delayRepaint = false;
|
||||||
_remgr.invalidateRegion(_vbounds);
|
_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 + ".");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user