svn merge -r39930:39947 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenloader / intern / readfile.c
index 355fc14..5518e13 100644 (file)
@@ -4185,6 +4185,13 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
                        if(tmd->curfalloff)
                                direct_link_curvemapping(fd, tmd->curfalloff);
                }
+               else if (md->type==eModifierType_WeightVGEdit) {
+                       WeightVGEditModifierData *wmd = (WeightVGEditModifierData*) md;
+
+                       wmd->cmap_curve = newdataadr(fd, wmd->cmap_curve);
+                       if(wmd->cmap_curve)
+                               direct_link_curvemapping(fd, wmd->cmap_curve);
+               }
        }
 }