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_nla | |
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_nla')
-rw-r--r-- | source/blender/editors/space_nla/nla_buttons.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_nla/space_nla.c | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/editors/space_nla/nla_buttons.c b/source/blender/editors/space_nla/nla_buttons.c index cd926218757..71717a5432c 100644 --- a/source/blender/editors/space_nla/nla_buttons.c +++ b/source/blender/editors/space_nla/nla_buttons.c @@ -97,7 +97,8 @@ static void do_nla_region_buttons(bContext *C, void *arg, int event) } /* default for now */ - WM_event_add_notifier(C, NC_SCENE|NC_OBJECT|ND_TRANSFORM, NULL); + WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL); + WM_event_add_notifier(C, NC_SCENE|ND_TRANSFORM, NULL); } static int nla_panel_context(const bContext *C, PointerRNA *adt_ptr, PointerRNA *nlt_ptr, PointerRNA *strip_ptr) diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c index f3001d4a258..77407769f3b 100644 --- a/source/blender/editors/space_nla/space_nla.c +++ b/source/blender/editors/space_nla/space_nla.c @@ -485,14 +485,14 @@ static void nla_listener(ScrArea *sa, wmNotifier *wmn) ED_area_tag_refresh(sa); break; case NC_OBJECT: - /*switch (wmn->data) { - case ND_BONE_SELECT: - case ND_BONE_ACTIVE: + switch (wmn->data) { + case ND_TRANSFORM: + /* do nothing */ + break; + default: ED_area_tag_refresh(sa); break; - }*/ - if (wmn->data != ND_VIEW3D_TRANSFORM) - ED_area_tag_refresh(sa); + } break; case NC_SPACE: if(wmn->data == ND_SPACE_NLA) |