diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-15 21:09:55 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-15 21:09:55 +0300 |
commit | 628f02d57482e987069c6b9969da309db84dbadd (patch) | |
tree | af21b3eea1710a65268fc46891512c09091a1652 /source/blender/editors/space_time/space_time.c | |
parent | a16df53619a2ab3b41c0cbcf6f9e01a9bf370c9c (diff) |
2.5
Added notifiers for timeline syncing. Works for Timeline window
only now.
Note that I've removed the malloc-free in a Notifier... notifier
system is still under probabtion :)
Diffstat (limited to 'source/blender/editors/space_time/space_time.c')
-rw-r--r-- | source/blender/editors/space_time/space_time.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c index 182f0a02f6c..9667e132e09 100644 --- a/source/blender/editors/space_time/space_time.c +++ b/source/blender/editors/space_time/space_time.c @@ -162,6 +162,15 @@ static void time_main_area_draw(const bContext *C, ARegion *ar) static void time_main_area_listener(ARegion *ar, wmNotifier *wmn) { /* context changes */ + + switch(wmn->type) { + case WM_NOTE_TIMELINE_SYNC: + if(ar->v2d.flag & V2D_VIEWSYNC_X) { + ar->do_draw= 1; /* XXX GAH! */ + UI_view2d_sync(&ar->v2d, wmn->data, wmn->value); + } + break; + } } /* ************************ header time area region *********************** */ |