Merging r38818 through r39198 from trunk into vgroup_modifiers.
[blender-staging.git] / source / blender / blenloader / intern / writefile.c
index 7d65248c0e92ce4963438b210a9d0188bc25ef7e..8ad8ba121e7b2c2ead486dab946cbdc43ce77ae2 100644 (file)
@@ -1306,6 +1306,12 @@ static void write_modifiers(WriteData *wd, ListBase *modbase)
                                write_curvemapping(wd, tmd->curfalloff);
                        }
                }
                                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);
+               }
        }
 }
 
        }
 }