[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57183] trunk/blender/source/blender/ modifiers/intern/MOD_array.c: fix regression in reducing normal recalculation [#35595],
Campbell Barton
ideasman42 at gmail.com
Sun Jun 2 02:20:27 CEST 2013
Revision: 57183
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57183
Author: campbellbarton
Date: 2013-06-02 00:20:26 +0000 (Sun, 02 Jun 2013)
Log Message:
-----------
fix regression in reducing normal recalculation [#35595],
pass the dirty-normal-state from the input dm to the output.
Modified Paths:
--------------
trunk/blender/source/blender/modifiers/intern/MOD_array.c
Modified: trunk/blender/source/blender/modifiers/intern/MOD_array.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_array.c 2013-06-01 22:37:15 UTC (rev 57182)
+++ trunk/blender/source/blender/modifiers/intern/MOD_array.c 2013-06-02 00:20:26 UTC (rev 57183)
@@ -563,7 +563,9 @@
result = CDDM_from_bmesh(bm, FALSE);
- if ((amd->offset_type & MOD_ARR_OFF_OBJ) && (amd->offset_ob)) {
+ if ((dm->dirty & DM_DIRTY_NORMALS) ||
+ ((amd->offset_type & MOD_ARR_OFF_OBJ) && (amd->offset_ob)))
+ {
/* Update normals in case offset object has rotation. */
result->dirty |= DM_DIRTY_NORMALS;
}
More information about the Bf-blender-cvs
mailing list