diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-28 20:44:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-31 02:20:11 +0300 |
commit | c16a8983efba9ecacd8da408d03c37a55483e528 (patch) | |
tree | bfeb0f644ac3bd8782bef474329e5a991c82d08c /source/blender/blenloader/intern/writefile.c | |
parent | 660173ed72d9c69f6891d5ad05a8c4a35ece9c7c (diff) |
Corrective Smooth Modifier (aka delta-mush)
This modifier can be used to correct bad deformations,
Original patch D1183 by @sazerac, with own modifications
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index bc1bc9c7759..afc53f343f1 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1620,6 +1620,13 @@ static void write_modifiers(WriteData *wd, ListBase *modbase) writedata(wd, DATA, sizeof(float)*lmd->total_verts * 3, lmd->vertexco); } + else if (md->type == eModifierType_CorrectiveSmooth) { + CorrectiveSmoothModifierData *csmd = (CorrectiveSmoothModifierData *)md; + + if (csmd->bind_coords) { + writedata(wd, DATA, sizeof(float[3]) * csmd->bind_coords_num, csmd->bind_coords); + } + } } } |