UI: remove unused emboss-table define

This commit is contained in:
Campbell Barton
2014-11-11 10:55:07 +01:00
parent 52d571e189
commit 4eeeae0eda
3 changed files with 3 additions and 5 deletions

View File

@@ -102,8 +102,7 @@ enum {
UI_EMBOSS = 0, /* use widget style for drawing */
UI_EMBOSS_NONE = 1, /* Nothing, only icon and/or text */
UI_EMBOSS_PULLDOWN = 2, /* Pulldown menu style */
UI_EMBOSS_TABLE = 3, /* Table */
UI_EMBOSS_RADIAL = 4, /* Pie Menu */
UI_EMBOSS_RADIAL = 3, /* Pie Menu */
};
/* uiBlock->direction */

View File

@@ -3517,7 +3517,8 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct
wt = widget_type(UI_WTYPE_MENU_ITEM_RADIAL);
}
else {
BLI_assert(but->dt == UI_EMBOSS);
switch (but->type) {
case UI_BTYPE_LABEL:
if (but->block->flag & UI_BLOCK_LOOP)

View File

@@ -775,8 +775,6 @@ static void outliner_draw_rnabuts(uiBlock *block, Scene *scene, ARegion *ar, Spa
TreeStoreElem *tselem;
PointerRNA *ptr;
PropertyRNA *prop;
UI_block_emboss_set(block, UI_EMBOSS_TABLE);
for (te = lb->first; te; te = te->next) {
tselem = TREESTORE(te);