Merging r38818 through r39198 from trunk into vgroup_modifiers.
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index bd12677485c2063bf23887dfe7457e3ebb403782..4c024c9ee20113afbfda2517a75fb19275edda0a 100644 (file)
@@ -4157,6 +4157,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);
+               }
        }
 }
 
@@ -11712,9 +11719,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
        /* put compatibility code here until next subversion bump */
 
        {
-       
        }
-       
+
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */
        /* WATCH IT 2!: Userdef struct init has to be in editors/interface/resources.c! */