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>2018-05-04 11:05:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-04 11:05:57 +0300
commitbf52d20e62798579b490581adcfa8ea4d4082993 (patch)
tree5d2fd2c60cc66c2c8c756aea78903f07f26551fc /source/blender/modifiers/intern/MOD_build.c
parentbdd5617c5442f0ba05a54f88d16b8d3be2f5278f (diff)
Modifiers: add back dirty normal flag
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 aebf63c3100..048e9ce33c0 100644
--- a/source/blender/modifiers/intern/MOD_build.c
+++ b/source/blender/modifiers/intern/MOD_build.c
@@ -297,6 +297,10 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx,
MEM_freeN(edgeMap);
MEM_freeN(faceMap);
+ if (mesh->runtime.cd_dirty_vert & CD_MASK_NORMAL) {
+ result->runtime.cd_dirty_vert |= CD_MASK_NORMAL;
+ }
+
/* TODO(sybren): also copy flags & tags? */
return result;
}