Merging r39984 through r39997 from trunk into soc-2011-tomato
[blender.git] / source / blender / blenloader / intern / writefile.c
index caab325407c02f15a2d9d3f5ded1ef79089c5e1b..dae6bdeb371d61a1654e195cb8a09a5539e80a1d 100644 (file)
@@ -1353,6 +1353,12 @@ static void write_modifiers(WriteData *wd, ListBase *modbase)
                                write_curvemapping(wd, tmd->curfalloff);
                        }
                }
+               else if (md->type==eModifierType_WeightVGEdit) {
+                       WeightVGEditModifierData *wmd = (WeightVGEditModifierData*) md;
+
+                       if (wmd->cmap_curve)
+                               write_curvemapping(wd, wmd->cmap_curve);
+               }
        }
 }