Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/interface/interface_icons.c')
-rw-r--r--source/blender/editors/interface/interface_icons.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 4e6732ee885..b0dd3aac61d 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -975,20 +975,11 @@ int ui_id_icon_get(bContext *C, ID *id, int preview)
case ID_IM: /* fall through */
case ID_WO: /* fall through */
case ID_LA: /* fall through */
+ case ID_BR: /* fall through */
iconid= BKE_icon_getid(id);
/* checks if not exists, or changed */
ui_id_icon_render(C, id, preview);
break;
- case ID_BR:
- { /* use the image in the brush as the icon */
- /* XXX redundancy here can be reduced be rewriting this switch as an if */
- ID* ima_id = (ID*)get_brush_icon((Brush*)id);
- id = ima_id ? ima_id : id;
- iconid= BKE_icon_getid(id);
- /* checks if not exists, or changed */
- ui_id_icon_render(C, id, preview);
- }
- break;
default:
break;
}