diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-25 22:42:33 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-25 22:42:33 +0300 |
commit | 4907e8df202cea41e52b33a0f6a6f852e3a07818 (patch) | |
tree | 44c2fa34059ed2870e3c6771c5e51141e263b88c /source/blender/editors/space_outliner | |
parent | c72fcc759bd8481033631a30be57befe54492496 (diff) |
Remove unneeded notifier data added in revision 26219.
Fix a lot of notifier calls to stop abusing ND_TRANSFORM and use more appropriate data flags.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index 97f1d34f673..867ba794da8 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -2019,7 +2019,7 @@ static int tree_element_active_posegroup(bContext *C, Scene *scene, TreeElement if(set) { if (ob->pose) { ob->pose->active_group= te->index+1; - WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, ob); + WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob); } } else { @@ -4726,7 +4726,7 @@ static void restrictbutton_modifier_cb(bContext *C, void *poin, void *poin2) DAG_id_flush_update(&ob->id, OB_RECALC_DATA); object_handle_update(scene, ob); - WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, ob); + WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob); } static void restrictbutton_bone_cb(bContext *C, void *poin, void *poin2) diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c index 21bc602dcac..568c0b353e3 100644 --- a/source/blender/editors/space_outliner/space_outliner.c +++ b/source/blender/editors/space_outliner/space_outliner.c @@ -128,10 +128,11 @@ 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: - case ND_VIEW3D_TRANSFORM: ED_region_tag_redraw(ar); break; case ND_MODIFIER: |