Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-09-25 13:49:18 +0300
committerJacques Lucke <jacques@blender.org>2020-09-25 13:49:18 +0300
commitd5870270151920a04cd69bbe4a78f118be09baef (patch)
tree55d5cdead0341c193ea1e44e72199acd26171b04 /source/blender/modifiers/intern/MOD_none.c
parentd15e8bdaa3343cf97a74f918b2570e66fb7abfa0 (diff)
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
Diffstat (limited to 'source/blender/modifiers/intern/MOD_none.c')
-rw-r--r--source/blender/modifiers/intern/MOD_none.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_none.c b/source/blender/modifiers/intern/MOD_none.c
index 095d124b2de..d5721bf988c 100644
--- a/source/blender/modifiers/intern/MOD_none.c
+++ b/source/blender/modifiers/intern/MOD_none.c
@@ -29,6 +29,8 @@
#include "UI_resources.h"
+#include "RNA_access.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 = {
/* name */ "None",
/* structName */ "ModifierData",
/* structSize */ sizeof(ModifierData),
+ /* srna */ &RNA_Modifier,
/* type */ eModifierTypeType_None,
/* flags */ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_AcceptsCVs,
/* icon */ ICON_NONE,