diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-04-19 17:17:16 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-04-19 17:17:16 +0400 |
commit | 8266c602b48563c2afdea51059b7e06a15ae6c0d (patch) | |
tree | cac6027152477a81a2f57adfcce79ddd63b03374 /source/blender | |
parent | b282655088817a055cac73385d1bec4efa75d387 (diff) |
Bugfix [#25960] .1 Action Editor header doesn't update when entering
tweakmode on NLA Strips
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index 06ff061f5ea..e8731391352 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -365,8 +365,13 @@ static void action_listener(ScrArea *sa, wmNotifier *wmn) } break; case NC_ANIMATION: + /* for NLA tweakmode enter/exit, need complete refresh */ + if (wmn->data == ND_NLA_ACTCHANGE) { + saction->flag |= SACTION_TEMP_NEEDCHANSYNC; + ED_area_tag_refresh(sa); + } /* for selection changes of animation data, we can just redraw... otherwise autocolor might need to be done again */ - if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) + else if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) ED_area_tag_redraw(sa); else ED_area_tag_refresh(sa); @@ -416,9 +421,9 @@ static void action_listener(ScrArea *sa, wmNotifier *wmn) static void action_header_area_listener(ARegion *ar, wmNotifier *wmn) { /* context changes */ - switch(wmn->category) { + switch (wmn->category) { case NC_SCENE: - switch(wmn->data) { + switch (wmn->data) { case ND_OB_ACTIVE: ED_region_tag_redraw(ar); break; |