From d15e8bdaa3343cf97a74f918b2570e66fb7abfa0 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 25 Sep 2020 12:45:30 +0200 Subject: Modifiers: add icon field to ModifierTypeInfo With this change `outliner_draw.c` does not have to be edited anymore when a new modifier is added. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D8998 --- source/blender/modifiers/intern/MOD_none.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/modifiers/intern/MOD_none.c') diff --git a/source/blender/modifiers/intern/MOD_none.c b/source/blender/modifiers/intern/MOD_none.c index a84a10f4b6c..095d124b2de 100644 --- a/source/blender/modifiers/intern/MOD_none.c +++ b/source/blender/modifiers/intern/MOD_none.c @@ -27,6 +27,8 @@ #include "MOD_modifiertypes.h" +#include "UI_resources.h" + /* We only need to define isDisabled; because it always returns 1, * no other functions will be called */ @@ -44,6 +46,7 @@ ModifierTypeInfo modifierType_None = { /* structSize */ sizeof(ModifierData), /* type */ eModifierTypeType_None, /* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs, + /* icon */ ICON_NONE, /* copyData */ NULL, -- cgit v1.2.3