Merging r39984 through r39997 from trunk into soc-2011-tomato
[blender.git] / source / blender / blenloader / intern / readfile.c
index b1e5f63e641efcd146ef833fe46b71b967f195fd..7feb7e3fc2567382f16cea6f49a56f756b2e84e7 100644 (file)
@@ -4228,6 +4228,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);
+               }
        }
 }