From 6846abb2cae3efd3e5b9943d7eba3423cbef9da3 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Fri, 16 Oct 2009 10:49:54 +0000 Subject: [PATCH] Added Notifier for Adding and Removing Keying sets. --- source/blender/editors/animation/keyingsets.c | 6 ++++++ source/blender/editors/space_buttons/space_buttons.c | 1 + 2 files changed, 7 insertions(+) diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index 30eaea8b82e..bf859ac6017 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -142,6 +142,9 @@ static int add_default_keyingset_exec (bContext *C, wmOperator *op) scene->active_keyingset= BLI_countlist(&scene->keyingsets); + /* send notifiers */ + WM_event_add_notifier(C, NC_SCENE|ND_KEYINGSET, NULL); + return OPERATOR_FINISHED; } @@ -182,6 +185,9 @@ static int remove_active_keyingset_exec (bContext *C, wmOperator *op) /* the active one should now be the previously second-to-last one */ scene->active_keyingset--; + /* send notifiers */ + WM_event_add_notifier(C, NC_SCENE|ND_KEYINGSET, NULL); + return OPERATOR_FINISHED; } diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index c1f06d99985..47806ba7937 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -251,6 +251,7 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn) case ND_FRAME: case ND_MODE: case ND_RENDER_OPTIONS: + case ND_KEYINGSET: ED_area_tag_redraw(sa); break;