diff options
author | Matt Ebb <matt@mke3.net> | 2009-12-14 02:51:41 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-12-14 02:51:41 +0300 |
commit | a4d52bd0fd180e2934ebed21a7d2aab84cc5b5a9 (patch) | |
tree | 0321ee1ae540ee49e9d60f04ca5cda23fee9cbac /source/blender/editors/space_action/space_action.c | |
parent | 3f612b6ea5b15b0a868f1472053378949722c88a (diff) |
patch [#20342] Notifier patch for modifier rename and particle system rename
by 'ThatHaze'. thanks!
Diffstat (limited to 'source/blender/editors/space_action/space_action.c')
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index 0cbc2ce9078..08ed44a54f9 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -289,14 +289,15 @@ static void action_channel_area_listener(ARegion *ar, wmNotifier *wmn) case ND_KEYS: ED_region_tag_redraw(ar); break; + case ND_MODIFIER: + if(wmn->action == NA_RENAME) + ED_region_tag_redraw(ar); + break; } break; case NC_ID: - switch(wmn->data) { - case ND_ID_RENAME: - ED_region_tag_redraw(ar); - break; - } + if(wmn->action == NA_RENAME) + ED_region_tag_redraw(ar); break; default: if(wmn->data==ND_KEYS) @@ -339,11 +340,8 @@ static void action_main_area_listener(ARegion *ar, wmNotifier *wmn) } break; case NC_ID: - switch(wmn->data) { - case ND_ID_RENAME: - ED_region_tag_redraw(ar); - break; - } + if(wmn->action == NA_RENAME) + ED_region_tag_redraw(ar); break; default: |