Browse Source

muting some debug statements

Asad M. Zaman 20 years ago
parent
commit
b025bfd79c
1 changed files with 9 additions and 5 deletions
  1. 9 5
      panda/src/chan/auto_bind.cxx

+ 9 - 5
panda/src/chan/auto_bind.cxx

@@ -42,18 +42,22 @@ static void
 bind_anims(const PartNodes &parts, const AnimNodes &anims,
            AnimControlCollection &controls,
            int hierarchy_match_flags) {
-  cerr << "bind_anims\n";
+  if (chan_cat.is_debug()) {
+    chan_cat.debug() << "bind_anims\n";
+  }
   PartNodes::const_iterator pni;
 
   for (pni = parts.begin(); pni != parts.end(); ++pni) {
     PartBundle *part = (*pni)->get_bundle();
-    cerr << "got part " << *part << "\n";
-
+    if (chan_cat.is_debug()) {
+      chan_cat.debug() << "got part " << *part << "\n";
+    }
     AnimNodes::const_iterator ani;
     for (ani = anims.begin(); ani != anims.end(); ++ani) {
       AnimBundle *anim = (*ani)->get_bundle();
-      cerr << "got anim " << *anim << "\n";
-
+      if (chan_cat.is_debug()) {
+        chan_cat.debug() << "got anim " << *anim << "\n";
+      }
       if (chan_cat.is_info()) {
         chan_cat.info()
           << "Attempting to bind " << *part << " to " << *anim << "\n";