fix crash with debug notify and NULL anim (untested, but trivial fix)

This commit is contained in:
David Rose 2011-03-28 18:03:51 +00:00
parent 1b8d55ce34
commit db74845139

View File

@ -267,9 +267,15 @@ bind_hierarchy(AnimGroup *anim, int channel_index, int &joint_index,
}
if (chan_cat.is_debug()) {
chan_cat.debug()
<< "binding " << *this << " to " << *anim << ", is_included = "
<< is_included << "\n";
if (anim == (AnimGroup *)NULL) {
chan_cat.debug()
<< "binding " << *this << " to NULL, is_included = "
<< is_included << "\n";
} else {
chan_cat.debug()
<< "binding " << *this << " to " << *anim << ", is_included = "
<< is_included << "\n";
}
}
while ((int)_channels.size() <= channel_index) {
_channels.push_back((AnimChannelBase*)NULL);