Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2015-10-10 08:16:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-29 13:10:15 +0300
commit4081dab9d5b125ba8451d1d51500d32b0c9e07b7 (patch)
treeecee258b1fd6e173228fdd975e2cf87fa55aa661
parentebc899790b200231b530ba38defd8201683d6a68 (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)
-rw-r--r--source/blender/editors/space_graph/graph_ops.c4
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;