Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-11-22 14:48:51 +0300
committerTon Roosendaal <ton@blender.org>2004-11-22 14:48:51 +0300
commit39022ffb88ea97667d1f0f23d7730ee62f427b31 (patch)
treed3bdae46168da63c1075f15130c0e64489db2726 /source/blender/src/toolbox.c
parent46fbe6b01e095ddb66f3bf6e0516569cfdca8f74 (diff)
Bug fix, irc report.
Move to layer buttons, using SHIFT+hotkeys to set button values and use mouse to press OK undid the last change, this due to active flag hanging on that button. It now clears hotkey active flags on mouseclick first.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r--source/blender/src/toolbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c
index 65ae77e2a42..b7843154772 100644
--- a/source/blender/src/toolbox.c
+++ b/source/blender/src/toolbox.c
@@ -1235,6 +1235,8 @@ int movetolayer_buts(unsigned int *lay)
dx= (sizex-5)/12;
dy= sizey/2;
+ /* buttons have 0 as return event, to prevent menu to close on hotkeys */
+
uiBlockBeginAlign(block);
for(a=0; a<5; a++)
uiDefButI(block, TOGR|BIT|a, 0, "",(short)(x1+a*dx),(short)(y1+dy),(short)dx,(short)dy, lay, 0, 0, 0, 0, "");