From d5870270151920a04cd69bbe4a78f118be09baef Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 25 Sep 2020 12:49:18 +0200 Subject: Modifiers: add StructRNA pointer field to ModifierTypeInfo This reduces the number of places that have to be modified when a new modifier is added. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D9000 --- source/blender/modifiers/intern/MOD_smooth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/modifiers/intern/MOD_smooth.c') diff --git a/source/blender/modifiers/intern/MOD_smooth.c b/source/blender/modifiers/intern/MOD_smooth.c index 8237b257feb..7076721d8ce 100644 --- a/source/blender/modifiers/intern/MOD_smooth.c +++ b/source/blender/modifiers/intern/MOD_smooth.c @@ -272,6 +272,7 @@ ModifierTypeInfo modifierType_Smooth = { /* name */ "Smooth", /* structName */ "SmoothModifierData", /* structSize */ sizeof(SmoothModifierData), + /* srna */ &RNA_SmoothModifier, /* type */ eModifierTypeType_OnlyDeform, /* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs | eModifierTypeFlag_SupportsEditmode, -- cgit v1.2.3