[Bf-blender-cvs] [babc0c9bd71] id_copy_refactor: Fix (unreported) bad copying code of Surface Deform modifier.
Bastien Montagne
noreply at git.blender.org
Tue Jun 20 17:56:37 CEST 2017
Commit: babc0c9bd71de106cef1945630b003af28259dd2
Author: Bastien Montagne
Date: Mon Jun 19 14:57:40 2017 +0200
Branches: id_copy_refactor
https://developer.blender.org/rBbabc0c9bd71de106cef1945630b003af28259dd2
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