- remove BLANK* from rna icon enum, would string search this list for every python...
[blender.git] / source / blender / makesrna / intern / rna_ui_api.c
index dfecd016f453645576bea77b9066c2cf23be3e36..2e4c6e5a7b7f6758f5a4b407699f04a87a96d781 100644 (file)
@@ -65,12 +65,13 @@ static PointerRNA rna_uiItemO(uiLayout *layout, char *opname, char *name, int ic
 
 #else
 
+#define DEF_ICON_BLANK_SKIP
 #define DEF_ICON(name) {ICON_##name, (#name), 0, (#name), ""},
 #define DEF_VICO(name) {VICO_##name, (#name), 0, (#name), ""},
-
 static EnumPropertyItem icon_items[] = {
 #include "UI_icons.h"
                {0, NULL, 0, NULL, NULL}};
+#undef DEF_ICON_BLANK_SKIP
 #undef DEF_ICON
 #undef DEF_VICO