Remove unneeded notifier data added in revision 26219.
[blender-staging.git] / source / blender / editors / space_outliner / space_outliner.c
index e3fbb13ed7d24e356ea3dda2096321ba7abf614a..568c0b353e3941d9edb3c7783fc5bcb077ee07ae 100644 (file)
@@ -128,11 +128,17 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
                        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? */
@@ -148,9 +154,9 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
                                ED_region_tag_redraw(ar);
                                break;
                case NC_ID:
-                       if(wmn->data == ND_ID_RENAME)
+                       if(wmn->action == NA_RENAME)
                                ED_region_tag_redraw(ar);
-                               break;
+                       break;
        }
        
 }
@@ -281,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;