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_warp.c | |
parent | 87cc890aef53c4660448b1125dc0c40a187ae1f2 (diff) |
Mesh Modifiers: refactor copying using a generic function
Diffstat (limited to 'source/blender/modifiers/intern/MOD_warp.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_warp.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c index 83b05ae708a..e6d6c629681 100644 --- a/source/blender/modifiers/intern/MOD_warp.c +++ b/source/blender/modifiers/intern/MOD_warp.c @@ -66,20 +66,9 @@ static void copyData(ModifierData *md, ModifierData *target) WarpModifierData *wmd = (WarpModifierData *) md; WarpModifierData *twmd = (WarpModifierData *) target; - twmd->object_from = wmd->object_from; - twmd->object_to = wmd->object_to; + modifier_copyData_generic(md, target); - twmd->strength = wmd->strength; - twmd->falloff_radius = wmd->falloff_radius; - twmd->falloff_type = wmd->falloff_type; - BLI_strncpy(twmd->defgrp_name, wmd->defgrp_name, sizeof(twmd->defgrp_name)); twmd->curfalloff = curvemapping_copy(wmd->curfalloff); - - /* map info */ - twmd->texture = wmd->texture; - twmd->map_object = wmd->map_object; - BLI_strncpy(twmd->uvlayer_name, wmd->uvlayer_name, sizeof(twmd->uvlayer_name)); - twmd->texmapping = wmd->texmapping; } static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md) |