Added Notifier for Adding and Removing Keying sets.
authorThomas Dinges <blender@dingto.org>
Fri, 16 Oct 2009 10:49:54 +0000 (10:49 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 16 Oct 2009 10:49:54 +0000 (10:49 +0000)
source/blender/editors/animation/keyingsets.c
source/blender/editors/space_buttons/space_buttons.c

index 30eaea8b82eaf601607107b77b5e221db8c80ec5..bf859ac6017bef76a532fc136441b8b353a9eda5 100644 (file)
@@ -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;
 }
 
index c1f06d9998538605e9eca72d173a53283a10fed7..47806ba7937cf77fa50d2e41f91e338ee3d28928 100644 (file)
@@ -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;