mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix crash with debug notify and NULL anim (untested, but trivial fix)
This commit is contained in:
parent
1b8d55ce34
commit
db74845139
@ -267,10 +267,16 @@ bind_hierarchy(AnimGroup *anim, int channel_index, int &joint_index,
|
||||
}
|
||||
|
||||
if (chan_cat.is_debug()) {
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user