From e58cd23fd82bf1233ebf52c254fb23193566fe97 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 13 Jun 2011 16:13:50 +0000 Subject: [PATCH] spam output --- panda/src/pgraphnodes/callbackNode.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/pgraphnodes/callbackNode.cxx b/panda/src/pgraphnodes/callbackNode.cxx index d77a92ccc9..f887db6c5f 100644 --- a/panda/src/pgraphnodes/callbackNode.cxx +++ b/panda/src/pgraphnodes/callbackNode.cxx @@ -19,6 +19,7 @@ #include "cullableObject.h" #include "cullHandler.h" #include "omniBoundingVolume.h" +#include "config_pgraph.h" TypeHandle CallbackNode::_type_handle; @@ -146,6 +147,12 @@ is_renderable() const { //////////////////////////////////////////////////////////////////// void CallbackNode:: add_for_draw(CullTraverser *trav, CullTraverserData &data) { + if (pgraph_cat.is_spam()) { + pgraph_cat.spam() + << "Found " << *this << " in state " << *data._state + << " draw_mask = " << data._draw_mask << "\n"; + } + // OK, render this node. Rendering this node means creating a // CullableObject for the draw_callback, if any. We don't need to // pass any Geoms, however.