Commit: 4081dab9d5b125ba8451d1d51500d32b0c9e07b7
Author: Joshua Leung
Date:   Sat Oct 10 18:16:13 2015 +1300
Branches: blender-v2.76a-release
https://developer.blender.org/rB4081dab9d5b125ba8451d1d51500d32b0c9e07b7

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)

===================================================================

M       source/blender/editors/space_graph/graph_ops.c

===================================================================

diff --git a/source/blender/editors/space_graph/graph_ops.c 
b/source/blender/editors/space_graph/graph_ops.c
index 8e5c85d..07c16fa 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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to