diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-27 19:09:56 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-27 19:09:56 +0300 |
commit | f0f451fc16880315c8c094aaabd0fbf8a06ffede (patch) | |
tree | bfd93ce72af37a8c08898b745e09af08c36e4314 /source/blender/editors/animation/anim_markers.c | |
parent | 0714d28236e66b258de90bcbb8a1a821ee424a71 (diff) |
2.5
Notifier system upgrade, based on Brecht's doc.
Implementation notes:
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/DataNotifiers#Implementation
In short: let's try to strictly communicate in a notifier what happened.
The listeners then can act themselves. It also means that a frame-changed
notifier doesn't send out redraws, the editors themselves can decide.
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index b8a4436dedf..141ed5a9e70 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -200,7 +200,7 @@ static int ed_marker_add(bContext *C, wmOperator *op) sprintf(marker->name, "Frame %d", frame); // XXX - temp code only BLI_addtail(markers, marker); - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); //BIF_undo_push("Add Marker"); return OPERATOR_FINISHED; @@ -336,7 +336,7 @@ static void ed_marker_move_cancel(bContext *C, wmOperator *op) ed_marker_move_apply(C, op); ed_marker_move_exit(C, op); - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); } @@ -379,7 +379,7 @@ static int ed_marker_move_modal(bContext *C, wmOperator *op, wmEvent *evt) case RIGHTMOUSE: if(WM_modal_tweak_check(evt, mm->event_type)) { ed_marker_move_exit(C, op); - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); return OPERATOR_FINISHED; } @@ -456,7 +456,7 @@ XXX else if (mm->slink->spacetype == SPACE_ACTION) { } } - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); // headerprint(str); XXX } } @@ -623,7 +623,7 @@ static int ed_marker_select(bContext *C, wmEvent *evt, int extend) else select_timeline_marker_frame(markers, cfra, 0); - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); return OPERATOR_PASS_THROUGH; } @@ -716,7 +716,7 @@ static int ed_marker_border_select_exec(bContext *C, wmOperator *op) } } - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); return 1; } @@ -769,7 +769,7 @@ static int ed_marker_select_all_exec(bContext *C, wmOperator *op) marker->flag &= ~SELECT; } - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); return OPERATOR_FINISHED; } @@ -816,7 +816,7 @@ static int ed_marker_delete_exec(bContext *C, wmOperator *op) } if(changed) { - WM_event_add_notifier(C, WM_NOTE_MARKERS_CHANGED, 0, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_MARKERS, NULL); } return OPERATOR_FINISHED; } |