Fix [#20152] Video textures do not refresh at frame change

This commit is contained in:
Matt Ebb 2010-01-28 02:08:16 +00:00
parent bf16ed0c80
commit b0989aac02

@ -256,10 +256,17 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn)
switch(wmn->category) { switch(wmn->category) {
case NC_SCENE: case NC_SCENE:
switch(wmn->data) { switch(wmn->data) {
case ND_FRAME:
case ND_RENDER_OPTIONS: case ND_RENDER_OPTIONS:
buttons_area_redraw(sa, BCONTEXT_RENDER); buttons_area_redraw(sa, BCONTEXT_RENDER);
break; break;
case ND_FRAME:
buttons_area_redraw(sa, BCONTEXT_RENDER);
buttons_area_redraw(sa, BCONTEXT_MATERIAL);
buttons_area_redraw(sa, BCONTEXT_TEXTURE);
buttons_area_redraw(sa, BCONTEXT_WORLD);
buttons_area_redraw(sa, BCONTEXT_DATA);
sbuts->preview= 1;
break;
case ND_OB_ACTIVE: case ND_OB_ACTIVE:
ED_area_tag_redraw(sa); ED_area_tag_redraw(sa);
sbuts->preview= 1; sbuts->preview= 1;