From b025bfd79cf781d43e5425e87283153270eda89f Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Wed, 15 Mar 2006 02:54:24 +0000 Subject: [PATCH] muting some debug statements --- panda/src/chan/auto_bind.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/panda/src/chan/auto_bind.cxx b/panda/src/chan/auto_bind.cxx index e53ad2967f..54e09e6928 100644 --- a/panda/src/chan/auto_bind.cxx +++ b/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";