diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-02 08:09:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-02 08:09:29 +0400 |
commit | ec30e3f00ecd3e366e13c233e34793f0ba3179aa (patch) | |
tree | 813d854e995bf313029194e72b16f66b5f40e9b6 /source/blender/modifiers/intern/MOD_build.c | |
parent | e648ca8862a2cee3723450b67f556e222b8b0d6b (diff) |
corrections to modifiers from recent normal handling changes
- solidify didn't define a dependsOnNormals callback (which it should have)
- build wasn't passing on dirty normals.
- decimate wasnt setting dirty normals.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_build.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_build.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_build.c b/source/blender/modifiers/intern/MOD_build.c index fe3a0641667..9e375b07972 100644 --- a/source/blender/modifiers/intern/MOD_build.c +++ b/source/blender/modifiers/intern/MOD_build.c @@ -296,6 +296,10 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *UNUSED(ob), MEM_freeN(edgeMap); MEM_freeN(faceMap); + if (dm->dirty & DM_DIRTY_NORMALS) { + result->dirty |= DM_DIRTY_NORMALS; + } + return result; } |