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-03-13 13:58:36 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-03-13 13:58:36 +0300
commit363dcf95352935d2edb2334ad401df9de80ff16c (patch)
treeca45dfd9fa353ed7cc7815b0d842118a89ce237c /source/blender/src/editobject.c
parent4afa6a259435f7dab12c2f79771827d6ed0e2e57 (diff)
Fix for bug #8476: changing lamp buttons or new W-key lamp editing
didn't update shaded mode, and W-key didn't update lamp preview render.
Diffstat (limited to 'source/blender/src/editobject.c')
-rw-r--r--source/blender/src/editobject.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 821be0b07e4..1a3775ac301 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -147,6 +147,7 @@
#include "BIF_interface.h"
#include "BIF_meshtools.h"
#include "BIF_mywindow.h"
+#include "BIF_previewrender.h"
#include "BIF_resources.h"
#include "BIF_retopo.h"
#include "BIF_screen.h"
@@ -2315,6 +2316,9 @@ static void spot_interactive(Object *ob, int mode)
mvalo[0]= mval[0];
mvalo[1]= mval[1];
+ /* handle shaded mode */
+ shade_buttons_change_3d();
+
/* DRAW */
headerprint(str);
force_draw_plus(SPACE_BUTS, 0);
@@ -2355,6 +2359,7 @@ static void spot_interactive(Object *ob, int mode)
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWBUTSSHADING, 0);
+ BIF_preview_changed(ID_LA);
}