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.
This commit is contained in:
Brecht Van Lommel 2008-03-13 10:58:36 +00:00
parent 4afa6a2594
commit 363dcf9535
2 changed files with 6 additions and 0 deletions

@ -3014,6 +3014,7 @@ void do_matbuts(unsigned short event)
case B_LAMPPRV:
BIF_preview_changed(ID_LA);
allqueue(REDRAWBUTSSHADING, 0);
shade_buttons_change_3d();
break;
case B_WORLDPRV:
BIF_preview_changed(ID_WO);

@ -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);
}