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_weightvgmix.c | |
parent | 87cc890aef53c4660448b1125dc0c40a187ae1f2 (diff) |
Mesh Modifiers: refactor copying using a generic function
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvgmix.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgmix.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvgmix.c b/source/blender/modifiers/intern/MOD_weightvgmix.c index 1ec287b3b3a..304d4c8774a 100644 --- a/source/blender/modifiers/intern/MOD_weightvgmix.c +++ b/source/blender/modifiers/intern/MOD_weightvgmix.c @@ -134,23 +134,12 @@ static void freeData(ModifierData *md) static void copyData(ModifierData *md, ModifierData *target) { +#if 0 WeightVGMixModifierData *wmd = (WeightVGMixModifierData *) md; +#endif WeightVGMixModifierData *twmd = (WeightVGMixModifierData *) target; - BLI_strncpy(twmd->defgrp_name_a, wmd->defgrp_name_a, sizeof(twmd->defgrp_name_a)); - BLI_strncpy(twmd->defgrp_name_b, wmd->defgrp_name_b, sizeof(twmd->defgrp_name_b)); - twmd->default_weight_a = wmd->default_weight_a; - twmd->default_weight_b = wmd->default_weight_b; - twmd->mix_mode = wmd->mix_mode; - twmd->mix_set = wmd->mix_set; - - twmd->mask_constant = wmd->mask_constant; - BLI_strncpy(twmd->mask_defgrp_name, wmd->mask_defgrp_name, sizeof(twmd->mask_defgrp_name)); - twmd->mask_texture = wmd->mask_texture; - twmd->mask_tex_use_channel = wmd->mask_tex_use_channel; - twmd->mask_tex_mapping = wmd->mask_tex_mapping; - twmd->mask_tex_map_obj = wmd->mask_tex_map_obj; - BLI_strncpy(twmd->mask_tex_uvlayer_name, wmd->mask_tex_uvlayer_name, sizeof(twmd->mask_tex_uvlayer_name)); + modifier_copyData_generic(md, target); if (twmd->mask_texture) { id_us_plus(&twmd->mask_texture->id); |