Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-21 21:35:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-21 21:37:26 +0400
commit158b4e61a050a25fec47a00797ab7db46fc3198c (patch)
tree8685bf78c15dc0b65477a5d6b7da29c40b599caa /source/blender/modifiers/intern/MOD_weightvgedit.c
parent87cc890aef53c4660448b1125dc0c40a187ae1f2 (diff)
Mesh Modifiers: refactor copying using a generic function
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvgedit.c')
-rw-r--r--source/blender/modifiers/intern/MOD_weightvgedit.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c
index c8da0eb6de7..fee4e81cb2d 100644
--- a/source/blender/modifiers/intern/MOD_weightvgedit.c
+++ b/source/blender/modifiers/intern/MOD_weightvgedit.c
@@ -89,24 +89,9 @@ static void copyData(ModifierData *md, ModifierData *target)
WeightVGEditModifierData *wmd = (WeightVGEditModifierData *) md;
WeightVGEditModifierData *twmd = (WeightVGEditModifierData *) target;
- BLI_strncpy(twmd->defgrp_name, wmd->defgrp_name, sizeof(twmd->defgrp_name));
+ modifier_copyData_generic(md, target);
- twmd->edit_flags = wmd->edit_flags;
- twmd->falloff_type = wmd->falloff_type;
- twmd->default_weight = wmd->default_weight;
-
- twmd->cmap_curve = curvemapping_copy(wmd->cmap_curve);
-
- twmd->add_threshold = wmd->add_threshold;
- twmd->rem_threshold = wmd->rem_threshold;
-
- 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));
+ twmd->cmap_curve = curvemapping_copy(wmd->cmap_curve);
if (twmd->mask_texture) {
id_us_plus(&twmd->mask_texture->id);