Grab brush shouldn't show strength slider
authorNicholas Bishop <nicholasbishop@gmail.com>
Sat, 9 Dec 2006 01:10:21 +0000 (01:10 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sat, 9 Dec 2006 01:10:21 +0000 (01:10 +0000)
source/blender/src/buttons_editing.c

index 2ff8d72640eb645737c9d6c3fd7ee90bc2fab354..1a8502965e99640c7a3804b865438273c55fc78c 100644 (file)
@@ -4081,7 +4081,8 @@ void sculptmode_draw_interface_tools(uiBlock *block, unsigned short cx, unsigned
        cy-= 20;
        but= uiDefButS(block,NUMSLI,B_NOP,"Size: ",cx,cy,200,19,&sculptmode_brush()->size,1.0,200.0,0,0,"Set brush radius in pixels");
        cy-= 20;
-       uiDefButC(block,NUMSLI,B_NOP,"Strength: ",cx,cy,200,19,&sculptmode_brush()->strength,1.0,100.0,0,0,"Set brush strength");
+       if(sd->brush_type!=GRAB_BRUSH)
+               uiDefButC(block,NUMSLI,B_NOP,"Strength: ",cx,cy,200,19,&sculptmode_brush()->strength,1.0,100.0,0,0,"Set brush strength");
        cy-= 25;
 
        uiBlockBeginAlign(block);