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:
parent
a93605b95b
commit
2092056745
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue