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 /source/blender/editors/space_graph/space_graph.c | |
parent | b6bc47eb098261189c63b3aecb806960db6235e1 (diff) |
Bugfix: Selecting nodes now updates animation editors
Noticed while testing the material nodes commit
Diffstat (limited to 'source/blender/editors/space_graph/space_graph.c')
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |