Remove unneeded notifier data added in revision 26219.
[blender-staging.git] / source / blender / editors / space_outliner / space_outliner.c
index 826a313217a62c4fc4a720f57c9af4db4c32d2e0..568c0b353e3941d9edb3c7783fc5bcb077ee07ae 100644 (file)
@@ -43,7 +43,7 @@
 #include "MEM_guardedalloc.h"
 
 #include "BLI_blenlib.h"
-#include "BLI_arithb.h"
+#include "BLI_math.h"
 #include "BLI_rand.h"
 
 #include "BKE_colortools.h"
@@ -121,17 +121,24 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
                                case ND_KEYINGSET:
                                case ND_FRAME:
                                case ND_RENDER_OPTIONS:
+                               case ND_LAYER:
                                        ED_region_tag_redraw(ar);
                                        break;
                        }
                        break;
                case NC_OBJECT:
                        switch(wmn->data) {
+                               case ND_TRANSFORM:
+                                       /* transform doesn't change outliner data */
+                                       break;
                                case ND_BONE_ACTIVE:
                                case ND_BONE_SELECT:
-                               case ND_TRANSFORM:
                                        ED_region_tag_redraw(ar);
                                        break;
+                               case ND_MODIFIER:
+                                       if(wmn->action == NA_RENAME)
+                                               ED_region_tag_redraw(ar);
+                                       break;
                        }
                case NC_GROUP:
                        /* all actions now, todo: check outliner view mode? */
@@ -146,6 +153,10 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
                        if(wmn->data == ND_SPACE_OUTLINER)
                                ED_region_tag_redraw(ar);
                                break;
+               case NC_ID:
+                       if(wmn->action == NA_RENAME)
+                               ED_region_tag_redraw(ar);
+                       break;
        }
        
 }
@@ -276,7 +287,7 @@ void ED_spacetype_outliner(void)
        art= MEM_callocN(sizeof(ARegionType), "spacetype time region");
        art->regionid = RGN_TYPE_HEADER;
        art->minsizey= HEADERY;
-       art->keymapflag= ED_KEYMAP_UI|ED_KEYMAP_VIEW2D;
+       art->keymapflag= ED_KEYMAP_UI|ED_KEYMAP_VIEW2D|ED_KEYMAP_FRAMES|ED_KEYMAP_HEADER;
        
        art->init= outliner_header_area_init;
        art->draw= outliner_header_area_draw;