diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-10-10 08:16:13 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-10-26 10:18:09 +0300 |
commit | 2092056745064f8ce41863f1856d902588dc39f9 (patch) | |
tree | 1086ab4351f7c59e059e661f0961363634ab4da7 /source/blender/editors/space_graph/graph_ops.c | |
parent | a93605b95b43466eb79bdca21283c2cfafad6a01 (diff) |
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)
Diffstat (limited to 'source/blender/editors/space_graph/graph_ops.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_ops.c b/source/blender/editors/space_graph/graph_ops.c index 8e5c85d2c38..07c16fa2cc4 100644 --- a/source/blender/editors/space_graph/graph_ops.c +++ b/source/blender/editors/space_graph/graph_ops.c @@ -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; |