[Bf-blender-cvs] [24486513d57] master: Fix (unreported) bad copying code of Surface Deform modifier.
Bastien Montagne
noreply at git.blender.org
Mon Jun 19 14:58:21 CEST 2017
Commit: 24486513d573a48f47ebee2e07876e2ed8e7c7b8
Author: Bastien Montagne
Date: Mon Jun 19 14:57:40 2017 +0200
Branches: master
https://developer.blender.org/rB24486513d573a48f47ebee2e07876e2ed8e7c7b8
Fix (unreported) bad copying code of Surface Deform modifier.
===================================================================
M source/blender/modifiers/intern/MOD_surfacedeform.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list