diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-16 01:40:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-16 01:40:33 +0300 |
commit | 5272991e8b91c527fbe3923d75ae2c5148dd7177 (patch) | |
tree | 84c871abe7d084a775ff7ffab5033c08d085ed32 /source/blender/editors/space_console | |
parent | 2b3a6b38b764717878de39a97feeee186e3694ad (diff) |
generic operator menu was searching for "type" and using the first enum property if it wasnt found.
this is too arbitrary and could break if roperty order is changed.
store the property in the operator type that is to be used for menu and enum search func's.
python function for searching operator enums on invoke. (just need dynamic python enums now)
wm.invoke_search_popup(self)
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r-- | source/blender/editors/space_console/console_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_console/console_draw.c b/source/blender/editors/space_console/console_draw.c index 9b4ec3882de..eda2b2021e5 100644 --- a/source/blender/editors/space_console/console_draw.c +++ b/source/blender/editors/space_console/console_draw.c @@ -78,16 +78,16 @@ static void console_line_color(unsigned char *fg, int type) { switch(type) { case CONSOLE_LINE_OUTPUT: - UI_GetThemeColor3ubv(TH_CONSOLE_OUTPUT, fg); + UI_GetThemeColor3ubv(TH_CONSOLE_OUTPUT, (char *)fg); break; case CONSOLE_LINE_INPUT: - UI_GetThemeColor3ubv(TH_CONSOLE_INPUT, fg); + UI_GetThemeColor3ubv(TH_CONSOLE_INPUT, (char *)fg); break; case CONSOLE_LINE_INFO: - UI_GetThemeColor3ubv(TH_CONSOLE_INFO, fg); + UI_GetThemeColor3ubv(TH_CONSOLE_INFO, (char *)fg); break; case CONSOLE_LINE_ERROR: - UI_GetThemeColor3ubv(TH_CONSOLE_ERROR, fg); + UI_GetThemeColor3ubv(TH_CONSOLE_ERROR, (char *)fg); break; } } |