diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-27 11:36:09 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-27 11:36:09 +0300 |
commit | 2c1214f696b237677be3b4648a3ed0b294b74167 (patch) | |
tree | 85f63a9149b765ba2f613ad5713b7557694860c8 /source/blender/editors/interface/interface_regions.c | |
parent | 83ea5824787145f69c7346da3df91bcc841b5981 (diff) |
2.5
Fix: icons didnt show for uiMenu api.
Diffstat (limited to 'source/blender/editors/interface/interface_regions.c')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index d0343f55db3..d29cf6103fe 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -2202,7 +2202,7 @@ static uiBlock *ui_block_func_MENU_ITEM(bContext *C, uiMenuBlockHandle *handle, name= ui_menu_enumpropname(opptr, item->propname, item->retval); BLI_strncpy(bname, name, 64); - but= uiDefIconTextBut(block, BUTM, item->retval, ICON_BLANK1, bname, x1, y1, width+16, MENU_BUTTON_HEIGHT-1, NULL, 0.0, 0.0, 0, 0, ""); + but= uiDefIconTextBut(block, BUTM, item->retval, item->icon, bname, x1, y1, width+16, MENU_BUTTON_HEIGHT-1, NULL, 0.0, 0.0, 0, 0, ""); but->opptr= opptr; but->opname= item->opname; @@ -2211,7 +2211,7 @@ static uiBlock *ui_block_func_MENU_ITEM(bContext *C, uiMenuBlockHandle *handle, y1 -= MENU_BUTTON_HEIGHT; } else if(item->type==MENU_ITEM_OPNAME) { - uiDefIconTextButO(block, BUTM, item->opname, head->opcontext, ICON_BLANK1, NULL, x1, y1, width+16, MENU_BUTTON_HEIGHT-1, NULL); + uiDefIconTextButO(block, BUTM, item->opname, head->opcontext, item->icon, NULL, x1, y1, width+16, MENU_BUTTON_HEIGHT-1, NULL); y1 -= MENU_BUTTON_HEIGHT; } else { |