Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-02 08:09:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-02 08:09:29 +0400
commitec30e3f00ecd3e366e13c233e34793f0ba3179aa (patch)
tree813d854e995bf313029194e72b16f66b5f40e9b6 /source/blender/modifiers/intern/MOD_build.c
parente648ca8862a2cee3723450b67f556e222b8b0d6b (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.c4
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;
}