chan: adjust _net_blend when AnimControl destructs

This commit is contained in:
rdb 2018-10-18 22:03:16 +02:00
parent e67d2a16c1
commit f35c9e5d79

View File

@ -556,6 +556,7 @@ control_removed(AnimControl *control) {
CDStageWriter cdata(_cycler, pipeline_stage);
ChannelBlend::iterator cbi = cdata->_blend.find(control);
if (cbi != cdata->_blend.end()) {
cdata->_net_blend -= cbi->second;
cdata->_blend.erase(cbi);
cdata->_anim_changed = true;