Changing the animation editor filters should now result in the editors updating in...
authorJoshua Leung <aligorith@gmail.com>
Tue, 13 Oct 2009 02:21:18 +0000 (02:21 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 13 Oct 2009 02:21:18 +0000 (02:21 +0000)
source/blender/editors/space_action/action_header.c
source/blender/editors/space_graph/graph_header.c
source/blender/editors/space_nla/nla_header.c

index 25a5123d1b5f840d6da7e63cd9acfd94baa23b9f..e0d952c29c1230e2eea0e44fd3eca6ab742c22a2 100644 (file)
@@ -68,7 +68,7 @@
 #include "action_intern.h"
 
 enum {
-       B_REDR= 0,
+       B_REDR= 1,
 } eActHeader_Events;
 
 /* ********************************************************* */
@@ -254,11 +254,8 @@ static void act_editmenu(bContext *C, uiLayout *layout, void *arg_unused)
 
 static void do_action_buttons(bContext *C, void *arg, int event)
 {
-       switch (event) {
-               case B_REDR:
-                       ED_area_tag_redraw(CTX_wm_area(C));
-                       break;
-       }
+       ED_area_tag_refresh(CTX_wm_area(C));
+       ED_area_tag_redraw(CTX_wm_area(C));
 }
 
 void action_header_buttons(const bContext *C, ARegion *ar)
index ac1378af859073b63ea027730858f7ba26d6059e..8d8c8702987eb9b7ca6ce6279c9854d7885ea34f 100644 (file)
@@ -244,15 +244,8 @@ enum {
 
 static void do_graph_buttons(bContext *C, void *arg, int event)
 {
-       switch (event) {
-               case B_MODECHANGE: /* change mode with mode selector */
-                       ED_area_tag_refresh(CTX_wm_area(C));
-                       /* no break, as we need redraw flush too... */
-                       
-               case B_REDR:
-                       ED_area_tag_redraw(CTX_wm_area(C));
-                       break;
-       }
+       ED_area_tag_refresh(CTX_wm_area(C));
+       ED_area_tag_redraw(CTX_wm_area(C));
 }
 
 
index 4eb9fac5cb89e0ff82dc0994643c3dd10098f6ba..be0b4381f00d332e9cee181882dbdeb9f966bab7 100644 (file)
@@ -73,8 +73,8 @@
 
 /* button events */
 enum {
-       B_REDR  = 0,
-} eActHeader_ButEvents;
+       B_REDR  = 1,
+} eNLAHeader_ButEvents;
 
 /* ************************ header area region *********************** */
 
@@ -203,11 +203,8 @@ static void nla_addmenu(bContext *C, uiLayout *layout, void *arg_unused)
 
 static void do_nla_buttons(bContext *C, void *arg, int event)
 {
-       switch (event) {
-               case B_REDR:
-                       ED_area_tag_redraw(CTX_wm_area(C));
-                       break;
-       }
+       ED_area_tag_refresh(CTX_wm_area(C));
+       ED_area_tag_redraw(CTX_wm_area(C));
 }