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
This commit is contained in:
2020-09-25 12:49:18 +02:00
parent d15e8bdaa3
commit d587027015
60 changed files with 80 additions and 119 deletions

View File

@@ -1010,6 +1010,7 @@ ModifierTypeInfo modifierType_Array = {
/* name */ "Array",
/* structName */ "ArrayModifierData",
/* structSize */ sizeof(ArrayModifierData),
/* srna */ &RNA_ArrayModifier,
/* type */ eModifierTypeType_Constructive,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsMapping |
eModifierTypeFlag_SupportsEditmode | eModifierTypeFlag_EnableInEditmode |