Render debug footprints even if we don't render objects.

It's really handy when you've got objects that hide others to be able to
turn off the objects but still get footprints.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@919 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2010-05-14 18:57:53 +00:00
parent 8d54026f63
commit cb15424946
@@ -112,19 +112,27 @@ public class SceneObject
*/
public void paint (Graphics2D gfx)
{
if (_hideObjects.getValue()) {
return;
}
// if we're rendering footprints, paint that
boolean footpaint = _fprintDebug.getValue();
if (footpaint) {
gfx.setColor(Color.black);
gfx.draw(_footprint);
if (_hideObjects.getValue()) {
// We're in footprints but no objects mode, so let's also fill it in so we can
// see things better/tell if we have overlapping ones
Composite ocomp = gfx.getComposite();
gfx.setComposite(ALPHA_WARN);
gfx.fill(_footprint);
gfx.setComposite(ocomp);
}
}
// if we have a warning, render an alpha'd red rectangle over our
// bounds
if (_hideObjects.getValue()) {
return;
}
// if we have a warning, render an alpha'd red rectangle over our bounds
if (_warning) {
Composite ocomp = gfx.getComposite();
gfx.setComposite(ALPHA_WARN);