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_hook.c | |
parent | 87cc890aef53c4660448b1125dc0c40a187ae1f2 (diff) |
Mesh Modifiers: refactor copying using a generic function
Diffstat (limited to 'source/blender/modifiers/intern/MOD_hook.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_hook.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/modifiers/intern/MOD_hook.c b/source/blender/modifiers/intern/MOD_hook.c index 4e8af650cb2..31aad533727 100644 --- a/source/blender/modifiers/intern/MOD_hook.c +++ b/source/blender/modifiers/intern/MOD_hook.c @@ -64,15 +64,9 @@ static void copyData(ModifierData *md, ModifierData *target) HookModifierData *hmd = (HookModifierData *) md; HookModifierData *thmd = (HookModifierData *) target; - copy_v3_v3(thmd->cent, hmd->cent); - thmd->falloff = hmd->falloff; - thmd->force = hmd->force; - thmd->object = hmd->object; - thmd->totindex = hmd->totindex; + modifier_copyData_generic(md, target); + thmd->indexar = MEM_dupallocN(hmd->indexar); - memcpy(thmd->parentinv, hmd->parentinv, sizeof(hmd->parentinv)); - BLI_strncpy(thmd->name, hmd->name, sizeof(thmd->name)); - BLI_strncpy(thmd->subtarget, hmd->subtarget, sizeof(thmd->subtarget)); } static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md) |