From c71949419ed68ef1026b4ac7ac391a51ce055ae8 Mon Sep 17 00:00:00 2001 From: Juho Vepsalainen Date: Thu, 3 May 2007 15:10:44 +0000 Subject: == UV/Image Editor == Patch #6570. This patch adds color and alpha selectors to Image -> "New..." dialog. --- source/blender/src/toolbox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/src/toolbox.c') 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); -- cgit v1.2.3