From 6fbd4e3e1f5169aed15856f7b1c412176035b236 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 14 Oct 2004 14:20:24 +0000 Subject: Color picker fixes... (bug #1490) Since color is stored RGB only in Blender, the conversion from and to HSV causes values to be clipped all the time. Solution found is adding a persistant hsv storage to the uiBut struct, and have it working on that only while hsv button is open. Still, after usage (leaving picker) the conversion will change values to rgb. Also added; redraw event for editing buttons, to show correct changed color while using nkey picker --- source/blender/include/BIF_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/include/BIF_interface.h') diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h index 01fc74430e1..e374cb3571e 100644 --- a/source/blender/include/BIF_interface.h +++ b/source/blender/include/BIF_interface.h @@ -180,7 +180,7 @@ void uiFreeBlocksWin(struct ListBase *lb, int win); uiBlock *uiNewBlock(struct ListBase *lb, char *name, short dt, short font, short win); uiBlock *uiGetBlock(char *name, struct ScrArea *sa); -void uiBlockPickerButtons(struct uiBlock *block, float *col, float *hsv, float *old, char mode); +void uiBlockPickerButtons(struct uiBlock *block, float *col, float *hsv, float *old, char mode, short retval); /* automatic aligning, horiz or verical */ -- cgit v1.2.3