remove unneeded call to RNA_property_enum_get(), the icon was always overwritten after.

This commit is contained in:
Campbell Barton
2013-02-20 01:23:34 +00:00
parent 2f0eec488c
commit c22e52f409

View File

@@ -1581,7 +1581,8 @@ static uiBlock *icon_view_menu(bContext *C, ARegion *ar, void *arg_litem)
/* arg_litem is malloced, can be freed by parent button */
cb = *((RNAUpdateCb *)arg_litem);
icon = RNA_property_enum_get(&cb.ptr, cb.prop);
/* unused */
// icon = RNA_property_enum_get(&cb.ptr, cb.prop);
block = uiBeginBlock(C, ar, "_popup", UI_EMBOSS);
uiBlockSetFlag(block, UI_BLOCK_LOOP | UI_BLOCK_REDRAW);