diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-06-27 08:24:59 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-06-27 08:24:59 +0400 |
commit | fd3c5bef7e55ca22a96a74ca011e4ffe425e5321 (patch) | |
tree | 2be955ad8b7bbd1e7063946ec3bbe276ffdf63d7 | |
parent | b6bc47eb098261189c63b3aecb806960db6235e1 (diff) |
Bugfix: Selecting nodes now updates animation editors
Noticed while testing the material nodes commit
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 7 | ||||
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index 7a824e6bf9d..a05d1d3df93 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -405,6 +405,13 @@ static void action_listener(ScrArea *sa, wmNotifier *wmn) break; } break; + case NC_NODE: + if (wmn->action == NA_SELECTED) { + /* selection changed, so force refresh to flush (needs flag set to do syncing) */ + saction->flag |= SACTION_TEMP_NEEDCHANSYNC; + ED_area_tag_refresh(sa); + } + break; case NC_SPACE: switch (wmn->data) { case ND_SPACE_DOPESHEET: diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index f58963d1d98..6a548a58507 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -464,6 +464,13 @@ static void graph_listener(ScrArea *sa, wmNotifier *wmn) break; } break; + case NC_NODE: + if (wmn->action == NA_SELECTED) { + /* selection changed, so force refresh to flush (needs flag set to do syncing) */ + sipo->flag |= SIPO_TEMP_NEEDCHANSYNC; + ED_area_tag_refresh(sa); + } + break; case NC_SPACE: if(wmn->data == ND_SPACE_GRAPH) ED_area_tag_redraw(sa); |