Added notifier listener for node editor.

Now it behaves right on playback:

- Starting playback "Anim Player" button appears on header.
  It used to appear only on mouse hover before.
- Stopping playback triggers refresh on compositor, so
  actual result would be visible if image sequence/movie
  is used in nodes.
This commit is contained in:
Sergey Sharybin
2011-07-17 08:38:04 +00:00
parent 410c5e3cd2
commit c9ad903af2

View File

@@ -228,6 +228,13 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
else if (wmn->action == NA_SELECTED)
ED_area_tag_redraw(sa);
break;
case NC_SCREEN:
switch(wmn->data) {
case ND_ANIMPLAY:
ED_area_tag_refresh(sa);
break;
}
break;
case NC_IMAGE:
if (wmn->action == NA_EDITED) {