mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
chan: fix crash in certain cases after AnimControl destruction
This commit is contained in:
parent
eac88fc64a
commit
a05e928a75
@ -558,6 +558,12 @@ control_removed(AnimControl *control) {
|
||||
if (cbi != cdata->_blend.end()) {
|
||||
cdata->_blend.erase(cbi);
|
||||
cdata->_anim_changed = true;
|
||||
|
||||
// We need to make sure that any _effective_channel pointers that point
|
||||
// to this control are cleared.
|
||||
if (pipeline_stage == 0) {
|
||||
determine_effective_channels(cdata);
|
||||
}
|
||||
}
|
||||
}
|
||||
CLOSE_ITERATE_ALL_STAGES(_cycler);
|
||||
|
Loading…
x
Reference in New Issue
Block a user