[Bf-blender-cvs] [cba2e0a] master: Fix T41630: Edge Split Modifier don't work anymore when a Array Modifier is after the Edge Split Modifier added.

Bastien Montagne noreply at git.blender.org
Fri Aug 29 18:08:31 CEST 2014


Commit: cba2e0afa7525f93d1834cc5de6ca659547fdc5a
Author: Bastien Montagne
Date:   Fri Aug 29 18:07:54 2014 +0200
Branches: master
https://developer.blender.org/rBcba2e0afa7525f93d1834cc5de6ca659547fdc5a

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...

===================================================================

M	source/blender/modifiers/intern/MOD_array.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c
index bd137d4..2768d94 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) {




More information about the Bf-blender-cvs mailing list