Merging r39948 through r39988 from trunk into vgroup_modifiers.
[blender.git] / source / blender / blenloader / intern / readfile.c
index 6641481..eb5d6a6 100644 (file)
@@ -4186,6 +4186,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);
+               }
        }
 }