Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-10-05 04:21:43 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-10-05 04:21:43 +0400
commit6800c5725f01208cfe9ce94f9771826e2c218b84 (patch)
treeb0fc0d993511d756e7977ba96f7c3bc7b3740d53 /source/blender/src/buttons_shading.c
parent1e0f02c2ef1e89ceb9840ef59ca2c7067a817e72 (diff)
Fix for bug #17761: small GLSL update tweak, switching ray and
buffer shadow didn't update the viewport correct.
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r--source/blender/src/buttons_shading.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index c377168bdb8..056ecd5d36c 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -2428,6 +2428,7 @@ void do_lampbuts(unsigned short event)
case B_SHADBUF:
la= G.buts->lockpoin;
la->mode &= ~LA_SHAD_RAY;
+ BIF_preview_changed(ID_LA);
allqueue(REDRAWBUTSSHADING, 0);
allqueue(REDRAWVIEW3D, 0);
break;
@@ -2437,6 +2438,7 @@ void do_lampbuts(unsigned short event)
/* yafray: 'softlight' uses it's own shadbuf. flag.
Must be cleared here too when switching from ray shadow */
la->mode &= ~LA_YF_SOFT;
+ BIF_preview_changed(ID_LA);
allqueue(REDRAWBUTSSHADING, 0);
allqueue(REDRAWVIEW3D, 0);
break;