From fd3c5bef7e55ca22a96a74ca011e4ffe425e5321 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 27 Jun 2011 04:24:59 +0000 Subject: Bugfix: Selecting nodes now updates animation editors Noticed while testing the material nodes commit --- source/blender/editors/space_action/space_action.c | 7 +++++++ source/blender/editors/space_graph/space_graph.c | 7 +++++++ 2 files changed, 14 insertions(+) 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); -- cgit v1.2.3