diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-29 15:15:42 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-29 15:15:42 +0300 |
commit | 1580b6bc171ed33f8006a240c0c8379405fa8c27 (patch) | |
tree | 003472b1c414990044d6369b2760e5fdb2092e70 /source/blender/editors/space_action/space_action.c | |
parent | 3e29ff72049f4dc831e568e5a7ecfd13348a147c (diff) |
2.5
More notifier cleanups:
NC_SCENE|ND_OB_SELECT : scene level object selections changed
NC_SCENE|ND_OB_ACTIVE : scene level, new active object
NC_OBJECT|ND_BONE_SELECT : object level, bone selection changed
NC_OBJECT|ND_BONE_ACTIVE: object level, new active bone
I've made view3d listen to these, so operators that change
selections don't have to tag own region for redraw anymore.
Also enabled selecting/activating in outliner again.
BTW: Added it in space_action, but Joshua has to code the
proper refresh still :)
Diffstat (limited to 'source/blender/editors/space_action/space_action.c')
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index f772896a5a3..9545421b7ef 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -292,12 +292,21 @@ static void action_main_area_listener(ARegion *ar, wmNotifier *wmn) switch(wmn->category) { case NC_SCENE: switch(wmn->data) { + case ND_OB_ACTIVE: case ND_FRAME: case ND_MARKERS: ED_region_tag_redraw(ar); break; } break; + case NC_OBJECT: + switch(wmn->data) { + case ND_BONE_ACTIVE: + case ND_BONE_SELECT: + ED_region_tag_redraw(ar); + break; + } + break; } } |