diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_laplaciandeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_laplaciandeform.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.c b/source/blender/modifiers/intern/MOD_laplaciandeform.c index 5040ffbe916..defd287034e 100644 --- a/source/blender/modifiers/intern/MOD_laplaciandeform.c +++ b/source/blender/modifiers/intern/MOD_laplaciandeform.c @@ -797,12 +797,11 @@ static void copyData(ModifierData *md, ModifierData *target) { LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)md; LaplacianDeformModifierData *tlmd = (LaplacianDeformModifierData *)target; - tlmd->total_verts = lmd->total_verts; - tlmd->repeat = lmd->repeat; - BLI_strncpy(tlmd->anchor_grp_name, lmd->anchor_grp_name, sizeof(tlmd->anchor_grp_name)); + + modifier_copyData_generic(md, target); + tlmd->vertexco = MEM_dupallocN(lmd->vertexco); tlmd->cache_system = MEM_dupallocN(lmd->cache_system); - tlmd->flag = lmd->flag; } static bool isDisabled(ModifierData *md, int UNUSED(useRenderParams)) |