* Updated the lamp buttons to force redraw when changing the Spot Blur slider
authorMatt Ebb <matt@mke3.net>
Sun, 20 Nov 2005 20:19:27 +0000 (20:19 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 20 Nov 2005 20:19:27 +0000 (20:19 +0000)
source/blender/src/buttons_shading.c

index f9c4cc42c299fd4337647e549bdcc4c98e2ea2f7..9599f4e0ae979e1491e3250d5f273166824187e9 100644 (file)
@@ -2250,7 +2250,7 @@ static void lamp_panel_spot(Object *ob, Lamp *la)
                uiBlockSetCol(block, TH_AUTO);
                uiBlockBeginAlign(block);
                uiDefButF(block, NUMSLI,B_LAMPREDRAW,"SpotSi ", 100,180,200,19,&la->spotsize, 1.0, 180.0, 0, 0, "Sets the angle of the spotlight beam in degrees");
-               uiDefButF(block, NUMSLI,B_MATPRV,"SpotBl ",             100,160,200,19,&la->spotblend, 0.0, 1.0, 0, 0, "Sets the softness of the spotlight edge");
+               uiDefButF(block, NUMSLI,B_LAMPREDRAW,"SpotBl ",         100,160,200,19,&la->spotblend, 0.0, 1.0, 0, 0, "Sets the softness of the spotlight edge");
                uiBlockEndAlign(block);
        
                uiDefButF(block, NUMSLI,0,"HaloInt ",                   100,135,200,19,&la->haint, 0.0, 5.0, 0, 0, "Sets the intensity of the spotlight halo");
@@ -2362,7 +2362,7 @@ static void lamp_panel_yafray(Object *ob, Lamp *la)
                uiBlockSetCol(block, TH_AUTO);
                uiBlockBeginAlign(block);
                uiDefButF(block, NUMSLI,B_LAMPREDRAW,"SpotSi ", 100,180,200,19,&la->spotsize, 1.0, 180.0, 0, 0, "Sets the angle of the spotlight beam in degrees");
-               uiDefButF(block, NUMSLI,B_MATPRV,"SpotBl ",             100,160,200,19,&la->spotblend, 0.0, 1.0, 0, 0, "Sets the softness of the spotlight edge");
+               uiDefButF(block, NUMSLI,B_LAMPREDRAW,"SpotBl ",         100,160,200,19,&la->spotblend, 0.0, 1.0, 0, 0, "Sets the softness of the spotlight edge");
                uiBlockEndAlign(block);
        
                if (la->mode & LA_HALO) uiDefButF(block, NUMSLI,0,"HaloInt ",                   100,135,200,19,&la->haint, 0.0, 5.0, 0, 0, "Sets the intensity of the spotlight halo");