diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-26 16:33:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-26 16:33:30 +0400 |
commit | ab1a0d6cf706fdf45841dba0a0eac8b94b369d1d (patch) | |
tree | 1d7484185406bdfb69f9a7cee01e0f9627682ccb /source/blender/makesrna/intern/rna_lamp.c | |
parent | b7ca8cef356f930648d5d9b033c40c41de284eeb (diff) |
Fix #35879: missing 3D viewport redraws when changing lamp settings, after recent
changes to avoid unnecessary redraws.
Diffstat (limited to 'source/blender/makesrna/intern/rna_lamp.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_lamp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c index d733d9b4cb6..ffc9ac0e52e 100644 --- a/source/blender/makesrna/intern/rna_lamp.c +++ b/source/blender/makesrna/intern/rna_lamp.c @@ -136,10 +136,7 @@ static void rna_Lamp_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr) Lamp *la = ptr->id.data; DAG_id_tag_update(&la->id, 0); - if (scene->gm.matmode == GAME_MAT_GLSL) - WM_main_add_notifier(NC_LAMP | ND_LIGHTING_DRAW, la); - else - WM_main_add_notifier(NC_LAMP | ND_LIGHTING, la); + WM_main_add_notifier(NC_LAMP | ND_LIGHTING, la); } static void rna_Lamp_draw_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) |