[Bf-committers] [RFC][PATCH] edit.c: allow to change circle select diameter with numpad-less keyboards

Melchior FRANZ mfranz at aon.at
Sun Nov 14 17:50:43 CET 2004


You may remember that shortly before the 2.34 release I bothered the list
with a problem that occurred only for people with a special numpad-less
keyboard[1] (sx-1 didn't work, because the minus wasn't seen as unary op,
but zoomed out.)

Now I've got a similar problem: I can't change the select circle size.
No matter if I have numpad emulation turned on or off, MINUSKEY and
EQUALKEY have no effect, and there are no PAD{PLUS,MINUS}KEYs here.
Would the following change be acceptable?

m. 


Index: edit.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/edit.c,v
retrieving revision 1.48
diff -u -p -r1.48 edit.c
--- edit.c      7 Nov 2004 16:49:46 -0000       1.48
+++ edit.c      14 Nov 2004 16:40:02 -0000
@@ -443,10 +443,12 @@ void circle_selectCB(select_CBfunc callb
                                break;
                        case WHEELDOWNMOUSE:
                        case PADPLUSKEY:
+                       case EQUALKEY:
                                if(val) if(rad<200.0) rad*= 1.2;
                                break;
                        case WHEELUPMOUSE:
                        case PADMINUS:
+                       case MINUSKEY:
                                if(val) if(rad>5.0) rad/= 1.2;
                                break;


[1] http://www.pfu.fujitsu.com/hhkeyboard/leaflet/lite_ang_m.jpg []


More information about the Bf-committers mailing list