[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55764] branches/soc-2008-mxcurioni/source /blender/modifiers/intern/MOD_mirror.c: Fix for Freestyle face marks not effective with the Mirror modifier.
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Wed Apr 3 20:26:51 CEST 2013
Revision: 55764
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55764
Author: kjym3
Date: 2013-04-03 18:26:51 +0000 (Wed, 03 Apr 2013)
Log Message:
-----------
Fix for Freestyle face marks not effective with the Mirror modifier.
Reported by IRIE Shinsuke through a branch code review comment, thanks!
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/modifiers/intern/MOD_mirror.c
Modified: branches/soc-2008-mxcurioni/source/blender/modifiers/intern/MOD_mirror.c
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/modifiers/intern/MOD_mirror.c 2013-04-03 17:32:30 UTC (rev 55763)
+++ branches/soc-2008-mxcurioni/source/blender/modifiers/intern/MOD_mirror.c 2013-04-03 18:26:51 UTC (rev 55764)
@@ -162,12 +162,16 @@
}
#if 1 /* WITH_FREESTYLE generic changes */
- /* if the source DM does not have edge CD_ORIGINDEX layer, then
+ /* if the source DM does not have edge/poly CD_ORIGINDEX layer, then
* the corresponding layer of the result DM is filled with zeros
* (see CDDM_from_template()) */
if (!CustomData_has_layer(&dm->edgeData, CD_ORIGINDEX)) {
range_vn_i(DM_get_edge_data_layer(result, CD_ORIGINDEX), maxEdges, 0);
}
+ if (!CustomData_has_layer(&dm->polyData, CD_ORIGINDEX)) {
+ DM_add_poly_layer(result, CD_ORIGINDEX, CD_CALLOC, NULL);
+ range_vn_i(DM_get_poly_data_layer(result, CD_ORIGINDEX), maxPolys, 0);
+ }
#endif
/* copy customdata to new geometry,
More information about the Bf-blender-cvs
mailing list