Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-02-12 04:11:29 +0300
committerJoshua Leung <aligorith@gmail.com>2009-02-12 04:11:29 +0300
commit9733eebd60237a841f1876557c55b78e353ae961 (patch)
tree522aad12ea9d1f50e3c5b9e96ca9a75f9e6ac00c /source/blender/editors/space_outliner/space_outliner.c
parent9ad8f1cf6a1911516ebf48e268995bc0357ecf2c (diff)
KeyingSets: More work on preparing the UI
KeyingSets can now be added/removed. Next up, the code for the operators to add items to Keying Sets.
Diffstat (limited to 'source/blender/editors/space_outliner/space_outliner.c')
-rw-r--r--source/blender/editors/space_outliner/space_outliner.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index 69f57d507b9..b8187309c0d 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -119,6 +119,7 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
case ND_OB_ACTIVE:
case ND_OB_SELECT:
case ND_MODE:
+ case ND_KEYINGSET:
ED_region_tag_redraw(ar);
break;
}
@@ -170,6 +171,17 @@ static void outliner_header_area_free(ARegion *ar)
{
}
+static void outliner_header_area_listener(ARegion *ar, wmNotifier *wmn)
+{
+ /* context changes */
+ switch(wmn->category) {
+ case NC_SCENE:
+ if(wmn->data == ND_KEYINGSET)
+ ED_region_tag_redraw(ar);
+ break;
+ }
+}
+
/* ******************** default callbacks for outliner space ***************** */
static SpaceLink *outliner_new(const bContext *C)
@@ -289,6 +301,7 @@ void ED_spacetype_outliner(void)
art->init= outliner_header_area_init;
art->draw= outliner_header_area_draw;
art->free= outliner_header_area_free;
+ art->listener= outliner_header_area_listener;
BLI_addhead(&st->regiontypes, art);
BKE_spacetype_register(st);