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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-06-19 15:57:40 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-06-19 15:57:40 +0300
commit24486513d573a48f47ebee2e07876e2ed8e7c7b8 (patch)
tree73d750751f3a5fbf530346b5a46b561d4e574887 /source
parent5347aa40d57e86774c1022d143234dae3b627aea (diff)
Fix (unreported) bad copying code of Surface Deform modifier.
Diffstat (limited to 'source')
-rw-r--r--source/blender/modifiers/intern/MOD_surfacedeform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c
index 79e3eb5f3df..b692137b604 100644
--- a/source/blender/modifiers/intern/MOD_surfacedeform.c
+++ b/source/blender/modifiers/intern/MOD_surfacedeform.c
@@ -138,7 +138,9 @@ static void copyData(ModifierData *md, ModifierData *target)
SurfaceDeformModifierData *smd = (SurfaceDeformModifierData *)md;
SurfaceDeformModifierData *tsmd = (SurfaceDeformModifierData *)target;
- *tsmd = *smd;
+ freeData(target);
+
+ modifier_copyData_generic(md, target);
if (smd->verts) {
tsmd->verts = MEM_dupallocN(smd->verts);