diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-21 21:35:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-21 21:37:26 +0400 |
commit | 158b4e61a050a25fec47a00797ab7db46fc3198c (patch) | |
tree | 8685bf78c15dc0b65477a5d6b7da29c40b599caa /source/blender/modifiers/intern/MOD_lattice.c | |
parent | 87cc890aef53c4660448b1125dc0c40a187ae1f2 (diff) |
Mesh Modifiers: refactor copying using a generic function
Diffstat (limited to 'source/blender/modifiers/intern/MOD_lattice.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_lattice.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_lattice.c b/source/blender/modifiers/intern/MOD_lattice.c index b83323d9141..76db877c229 100644 --- a/source/blender/modifiers/intern/MOD_lattice.c +++ b/source/blender/modifiers/intern/MOD_lattice.c @@ -56,11 +56,12 @@ static void initData(ModifierData *md) static void copyData(ModifierData *md, ModifierData *target) { +#if 0 LatticeModifierData *lmd = (LatticeModifierData *) md; LatticeModifierData *tlmd = (LatticeModifierData *) target; +#endif - tlmd->object = lmd->object; - BLI_strncpy(tlmd->name, lmd->name, sizeof(tlmd->name)); + modifier_copyData_generic(md, target); } static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md) |