Browse Source

spam output

David Rose 14 years ago
parent
commit
e58cd23fd8
1 changed files with 7 additions and 0 deletions
  1. 7 0
      panda/src/pgraphnodes/callbackNode.cxx

+ 7 - 0
panda/src/pgraphnodes/callbackNode.cxx

@@ -19,6 +19,7 @@
 #include "cullableObject.h"
 #include "cullableObject.h"
 #include "cullHandler.h"
 #include "cullHandler.h"
 #include "omniBoundingVolume.h"
 #include "omniBoundingVolume.h"
+#include "config_pgraph.h"
 
 
 TypeHandle CallbackNode::_type_handle;
 TypeHandle CallbackNode::_type_handle;
 
 
@@ -146,6 +147,12 @@ is_renderable() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void CallbackNode::
 void CallbackNode::
 add_for_draw(CullTraverser *trav, CullTraverserData &data) {
 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
   // OK, render this node.  Rendering this node means creating a
   // CullableObject for the draw_callback, if any.  We don't need to
   // CullableObject for the draw_callback, if any.  We don't need to
   // pass any Geoms, however.
   // pass any Geoms, however.