diff options
author | Chris Want <cwant@ualberta.ca> | 2003-03-19 08:29:07 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2003-03-19 08:29:07 +0300 |
commit | 8fc1ad5d2e3bd19b2a7f81f347bed4a30d8aad25 (patch) | |
tree | e0ba3c41eaac3db3cd35610c9f5919f6649c9b28 /source/blender | |
parent | 9ef2426be62bd9e7a84a94b8bd1d8b2c75546357 (diff) |
Added a UI_BLOCK_ENTER_OK flag to the uiBlock in button()
(this alleviates the problem where using the enter key
effects the widget under the mouse cursor instead of
doing an 'OK' (symptom: getting the wrong number of verts
when adding a mesh circle).
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/toolbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 5c4b85864be..d84dedfd045 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1093,7 +1093,8 @@ short button(short *var, short min, short max, char *str) if(mval[1]>G.curscreen->sizey) mval[1]= G.curscreen->sizey-10; block= uiNewBlock(&listb, "button", UI_EMBOSSX, UI_HELV, G.curscreen->mainwin); - uiBlockSetFlag(block, UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_RET_1); + uiBlockSetFlag(block, UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_RET_1| + UI_BLOCK_ENTER_OK); x1=mval[0]-150; y1=mval[1]-20; |