Fix: Missing update after scrubbing time in Graph Editor

Sometimes the timeline header didn't update after time-scrubbing in the graph
editor ends, leaving the "Pause" button visible until the next refresh of the
timeline (e.g. on mouse over)
This commit is contained in:
Joshua Leung 2015-10-10 18:16:13 +13:00
parent a93605b95b
commit 2092056745
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,8 @@ static int graphview_cursor_modal(bContext *C, wmOperator *op, const wmEvent *ev
case ESCKEY:
if (screen)
screen->scrubbing = false;
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, CTX_data_scene(C));
return OPERATOR_FINISHED;
case MOUSEMOVE:
@ -183,6 +185,8 @@ static int graphview_cursor_modal(bContext *C, wmOperator *op, const wmEvent *ev
if (event->val == KM_RELEASE) {
if (screen)
screen->scrubbing = false;
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, CTX_data_scene(C));
return OPERATOR_FINISHED;
}
break;