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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-08-29 20:07:54 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-08-29 20:07:54 +0400
commitcba2e0afa7525f93d1834cc5de6ca659547fdc5a (patch)
tree13fd76c298cfb5448af6fe17189f8df4ea3f287f /source/blender/modifiers/intern/MOD_array.c
parentbfd466f34c12c1998759a17e684c1bc2f747665e (diff)
Fix T41630: Edge Split Modifier don't work anymore when a Array Modifier is after the Edge Split Modifier added.
Dirty normals flag has to be passed to new dm...
Diffstat (limited to 'source/blender/modifiers/intern/MOD_array.c')
-rw-r--r--source/blender/modifiers/intern/MOD_array.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c
index bd137d4c507..2768d9412d7 100644
--- a/source/blender/modifiers/intern/MOD_array.c
+++ b/source/blender/modifiers/intern/MOD_array.c
@@ -690,6 +690,13 @@ static DerivedMesh *arrayModifier_doArray(
}
/* done capping */
+ /* In case org dm has dirty normals, or we made some merging, mark normals as dirty in new dm!
+ * TODO: we may need to set other dirty flags as well?
+ */
+ if ((dm->dirty & DM_DIRTY_NORMALS) || full_doubles_map) {
+ result->dirty |= DM_DIRTY_NORMALS;
+ }
+
/* Handle merging */
tot_doubles = 0;
if (full_doubles_map) {