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:
@@ -3014,6 +3014,7 @@ void do_matbuts(unsigned short event)
|
|||||||
case B_LAMPPRV:
|
case B_LAMPPRV:
|
||||||
BIF_preview_changed(ID_LA);
|
BIF_preview_changed(ID_LA);
|
||||||
allqueue(REDRAWBUTSSHADING, 0);
|
allqueue(REDRAWBUTSSHADING, 0);
|
||||||
|
shade_buttons_change_3d();
|
||||||
break;
|
break;
|
||||||
case B_WORLDPRV:
|
case B_WORLDPRV:
|
||||||
BIF_preview_changed(ID_WO);
|
BIF_preview_changed(ID_WO);
|
||||||
|
|||||||
@@ -147,6 +147,7 @@
|
|||||||
#include "BIF_interface.h"
|
#include "BIF_interface.h"
|
||||||
#include "BIF_meshtools.h"
|
#include "BIF_meshtools.h"
|
||||||
#include "BIF_mywindow.h"
|
#include "BIF_mywindow.h"
|
||||||
|
#include "BIF_previewrender.h"
|
||||||
#include "BIF_resources.h"
|
#include "BIF_resources.h"
|
||||||
#include "BIF_retopo.h"
|
#include "BIF_retopo.h"
|
||||||
#include "BIF_screen.h"
|
#include "BIF_screen.h"
|
||||||
@@ -2315,6 +2316,9 @@ static void spot_interactive(Object *ob, int mode)
|
|||||||
mvalo[0]= mval[0];
|
mvalo[0]= mval[0];
|
||||||
mvalo[1]= mval[1];
|
mvalo[1]= mval[1];
|
||||||
|
|
||||||
|
/* handle shaded mode */
|
||||||
|
shade_buttons_change_3d();
|
||||||
|
|
||||||
/* DRAW */
|
/* DRAW */
|
||||||
headerprint(str);
|
headerprint(str);
|
||||||
force_draw_plus(SPACE_BUTS, 0);
|
force_draw_plus(SPACE_BUTS, 0);
|
||||||
@@ -2355,6 +2359,7 @@ static void spot_interactive(Object *ob, int mode)
|
|||||||
|
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
allqueue(REDRAWBUTSSHADING, 0);
|
allqueue(REDRAWBUTSSHADING, 0);
|
||||||
|
BIF_preview_changed(ID_LA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user