diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2007-05-03 19:10:44 +0400 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2007-05-03 19:10:44 +0400 |
commit | c71949419ed68ef1026b4ac7ac391a51ce055ae8 (patch) | |
tree | 910871aaad78fc88a53fb2213dbcc58f2a49522c /source/blender/src/toolbox.c | |
parent | 7c5c0db23dc6b35d3e26129b2fc1764c859b80b4 (diff) |
== UV/Image Editor ==
Patch #6570.
This patch adds color and alpha selectors to Image -> "New..." dialog.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 0657d89f1fc..4a3dde25c67 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -570,8 +570,9 @@ int do_clever_numbuts(char *name, int tot, int winevent) if(varstr->type==TEX) { uiDefBut(block, TEX, 0, varstr->name,(short)((x1+15) + (sizex*xi)),(short)(y2-55- 20*yi),(short)(sizex), 19, numbpoin[a], varstr->min, varstr->max, 0, 0, varstr->tip); - } - else { + } else if(varstr->type==COL) { + uiDefButF(block, COL, 0, "",(short)((x1+15) + (sizex*xi)),(short)(y2-55- 20*yi),(short)(sizex), 19, numbpoin[a], varstr->min, varstr->max, 0, 0, ""); + } else { if(varstr->type==LABEL) {/* dont include the label when rounding the buttons */ uiBlockEndAlign(block); |