Depsgraph: Remove more legacy code from viewport

This commit is contained in:
Sergey Sharybin 2017-01-24 12:52:05 +01:00
parent 218b06eb83
commit a2d609331b
1 changed files with 4 additions and 6 deletions

View File

@ -960,12 +960,10 @@ static void view3d_main_region_listener(bScreen *sc, ScrArea *sa, ARegion *ar, w
case NC_LAMP:
switch (wmn->data) {
case ND_LIGHTING:
if ((v3d->drawtype == OB_MATERIAL) ||
(v3d->drawtype == OB_TEXTURE && (scene->gm.matmode == GAME_MAT_GLSL)) ||
!DEG_depsgraph_use_legacy())
{
ED_region_tag_redraw(ar);
}
/* TODO(sergey): This is a bit too much, but needed to
* handle updates from new depsgraph.
*/
ED_region_tag_redraw(ar);
break;
case ND_LIGHTING_DRAW:
ED_region_tag_redraw(ar);