diff options
author | Ton Roosendaal <ton@blender.org> | 2007-01-15 18:10:31 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-01-15 18:10:31 +0300 |
commit | c1cc7522b393ee1c2caef13e7019547b55758344 (patch) | |
tree | 62e51ed07c8a7f9578b9eba78584300e75259463 /source | |
parent | 68c8a74746a7370690ba768aa228fb6e9b037a68 (diff) |
Bugfix:
Material buttons: "Strands" menu closed after each button usage. Should
remain open until ENTER or ESC pressed or mouse leaves menu.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/buttons_shading.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c index 59b0cbbb2f2..891820d63a8 100644 --- a/source/blender/src/buttons_shading.c +++ b/source/blender/src/buttons_shading.c @@ -3411,10 +3411,11 @@ static uiBlock *strand_menu(void *mat_v) uiDefBut(block, LABEL, 0, "", 0, 0, 250, 100, NULL, 0, 0, 0, 0, ""); uiBlockBeginAlign(block); - uiDefButBitI(block, TOG, MA_TANGENT_STR, B_MATPRV, "Use Tangent Shading", 10,70,230,20, &(ma->mode), 0, 0, 0, 0, "Uses direction of strands as normal for tangent-shading"); - uiDefButF(block, NUMSLI, B_MATPRV, "Start ", 10, 50, 230,20, &ma->strand_sta, 0.25, 20.0, 2, 0, "Start size of strands in pixels"); - uiDefButF(block, NUMSLI, B_MATPRV, "End ", 10, 30, 230,20, &ma->strand_end, 0.25, 10.0, 2, 0, "End size of strands in pixels"); - uiDefButF(block, NUMSLI, B_MATPRV, "Shape ", 10, 10, 230,20, &ma->strand_ease, -0.9, 0.9, 2, 0, "Shape of strands, positive value makes it rounder, negative makes it spiky"); + /* event return 0, to prevent menu to close */ + uiDefButBitI(block, TOG, MA_TANGENT_STR, 0, "Use Tangent Shading", 10,70,230,20, &(ma->mode), 0, 0, 0, 0, "Uses direction of strands as normal for tangent-shading"); + uiDefButF(block, NUMSLI, 0, "Start ", 10, 50, 230,20, &ma->strand_sta, 0.25, 20.0, 2, 0, "Start size of strands in pixels"); + uiDefButF(block, NUMSLI, 0, "End ", 10, 30, 230,20, &ma->strand_end, 0.25, 10.0, 2, 0, "End size of strands in pixels"); + uiDefButF(block, NUMSLI, 0, "Shape ", 10, 10, 230,20, &ma->strand_ease, -0.9, 0.9, 2, 0, "Shape of strands, positive value makes it rounder, negative makes it spiky"); uiBlockSetDirection(block, UI_TOP); |