Generalized the sculptmode propset (DKEY) to work with strength as well as

brush size. Pressing the key once does brush size (same as before), then
pressing it a second time switches to setting brush strength.
This commit is contained in:
2006-11-18 21:01:25 +00:00
parent 681346188f
commit 0d08181c35
5 changed files with 136 additions and 59 deletions

View File

@@ -906,7 +906,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
if(!G.obedit && (G.f & G_SCULPTMODE)) {
if(G.scene->sculptdata.propset==1) {
if(G.scene->sculptdata.propset) {
sculptmode_propset(event);
return;
}
@@ -1386,7 +1386,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
else if((G.qual==0)){
if(G.f & G_SCULPTMODE)
G.scene->sculptdata.propset= 1;
sculptmode_propset_init(DKEY);
else {
pupval= pupmenu("Draw mode%t|BoundBox %x1|Wire %x2|OpenGL Solid %x3|Shaded Solid %x4|Textured Solid %x5");
if(pupval>0) {