Fix (unreported) timeline missing refresh on VSE selection change

Keyframes and channels were not updating immediately (you had to enter
channel and main regions with the mouse to force a redraw).

Differential Revision: https://developer.blender.org/D6762
This commit is contained in:
Philipp Oeser 2020-02-06 10:23:55 +01:00
parent 62ca9bcd0a
commit 807aefd623
1 changed files with 6 additions and 0 deletions

View File

@ -546,6 +546,12 @@ static void action_listener(wmWindow *UNUSED(win),
break;
case NC_SCENE:
switch (wmn->data) {
case ND_SEQUENCER:
if (wmn->action == NA_SELECTED) {
saction->runtime.flag |= SACTION_RUNTIME_FLAG_NEED_CHAN_SYNC;
ED_area_tag_refresh(sa);
}
break;
case ND_OB_ACTIVE:
case ND_OB_SELECT:
/* Selection changed, so force refresh to flush