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_meshcache.c | |
parent | 87cc890aef53c4660448b1125dc0c40a187ae1f2 (diff) |
Mesh Modifiers: refactor copying using a generic function
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshcache.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshcache.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshcache.c b/source/blender/modifiers/intern/MOD_meshcache.c index 6d5caaa3ad1..925d9691892 100644 --- a/source/blender/modifiers/intern/MOD_meshcache.c +++ b/source/blender/modifiers/intern/MOD_meshcache.c @@ -68,32 +68,11 @@ static void initData(ModifierData *md) static void copyData(ModifierData *md, ModifierData *target) { +#if 0 MeshCacheModifierData *mcmd = (MeshCacheModifierData *)md; MeshCacheModifierData *tmcmd = (MeshCacheModifierData *)target; - - tmcmd->flag = mcmd->flag; - tmcmd->type = mcmd->type; - - tmcmd->time_mode = mcmd->time_mode; - tmcmd->play_mode = mcmd->play_mode; - - tmcmd->forward_axis = mcmd->forward_axis; - tmcmd->up_axis = mcmd->up_axis; - tmcmd->flip_axis = mcmd->flip_axis; - - tmcmd->interp = mcmd->interp; - - tmcmd->frame_start = mcmd->frame_start; - tmcmd->frame_scale = mcmd->frame_scale; - - tmcmd->factor = mcmd->factor; - tmcmd->deform_mode = mcmd->deform_mode; - - tmcmd->eval_frame = mcmd->eval_frame; - tmcmd->eval_time = mcmd->eval_time; - tmcmd->eval_factor = mcmd->eval_factor; - - BLI_strncpy(tmcmd->filepath, mcmd->filepath, sizeof(tmcmd->filepath)); +#endif + modifier_copyData_generic(md, target); } static bool dependsOnTime(ModifierData *md) |