Bugfix: Selecting nodes now updates animation editors

Noticed while testing the material nodes commit
This commit is contained in:
Joshua Leung
2011-06-27 04:24:59 +00:00
parent b6bc47eb09
commit fd3c5bef7e
2 changed files with 14 additions and 0 deletions

View File

@@ -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:

View File

@@ -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);