diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-01 20:56:34 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-01 20:56:34 +0300 |
commit | c3238bd50010e43ad97edb07ca1b2fe04ddf7f45 (patch) | |
tree | fa43f6fba52cde9fad9c4931c970861b675e7ae9 /source/blender/makesdna/intern | |
parent | 4c0ef4f788a1037888d5cb0a87ac23d6fe84573e (diff) |
Cleanup: Use DNA defaults for cloth modifier
Followup for rB8398050695
This requires moving a few enum definitions to DNA instead of BKE, and
adding default definitions for the two structs the cloth modifier where
the cloth modifier stores its settings. The defaults are also reordered
to be consistent with the order of each item in the struct.
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r-- | source/blender/makesdna/intern/dna_defaults.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/dna_defaults.c b/source/blender/makesdna/intern/dna_defaults.c index f2498325f3d..6fff2d33ac8 100644 --- a/source/blender/makesdna/intern/dna_defaults.c +++ b/source/blender/makesdna/intern/dna_defaults.c @@ -86,6 +86,7 @@ #include "DNA_brush_types.h" #include "DNA_cachefile_types.h" #include "DNA_camera_types.h" +#include "DNA_cloth_types.h" #include "DNA_curve_types.h" #include "DNA_hair_types.h" #include "DNA_image_types.h" @@ -208,7 +209,9 @@ SDNA_DEFAULT_DECL_STRUCT(BevelModifierData); SDNA_DEFAULT_DECL_STRUCT(BooleanModifierData); SDNA_DEFAULT_DECL_STRUCT(BuildModifierData); SDNA_DEFAULT_DECL_STRUCT(CastModifierData); -/* Cloth modifier skipped for now. */ +SDNA_DEFAULT_DECL_STRUCT(ClothSimSettings); +SDNA_DEFAULT_DECL_STRUCT(ClothCollSettings); +SDNA_DEFAULT_DECL_STRUCT(ClothModifierData); SDNA_DEFAULT_DECL_STRUCT(CollisionModifierData); SDNA_DEFAULT_DECL_STRUCT(CorrectiveSmoothModifierData); SDNA_DEFAULT_DECL_STRUCT(CurveModifierData); @@ -389,7 +392,9 @@ const void *DNA_default_table[SDNA_TYPE_MAX] = { SDNA_DEFAULT_DECL(BooleanModifierData), SDNA_DEFAULT_DECL(BuildModifierData), SDNA_DEFAULT_DECL(CastModifierData), - /* Cloth modifier skipped for now. */ + SDNA_DEFAULT_DECL(ClothSimSettings), + SDNA_DEFAULT_DECL(ClothCollSettings), + SDNA_DEFAULT_DECL(ClothModifierData), SDNA_DEFAULT_DECL(CollisionModifierData), SDNA_DEFAULT_DECL(CorrectiveSmoothModifierData), SDNA_DEFAULT_DECL(CurveModifierData), |