Work-in-progress re-implementation of CustomData-based edge/face marks.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sun, 31 Mar 2013 10:33:27 +0000 (10:33 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sun, 31 Mar 2013 10:33:27 +0000 (10:33 +0000)
commit1360bb6fb0bf0c5c14235c47bf1399accbcecc6f
treed7c54ffecd745f9f390e8b4e9283843a8fa704ef
parent829a2cc1b0495a70ca8333f29023bc2414a465f8
Work-in-progress re-implementation of CustomData-based edge/face marks.

Most changes in revision 55228 were reverted and Freestyle edge/face marks
were re-implemented using CD_ORIGINDEX layers of edge/poly custom data.

For this implementation to work properly, modifiers were updated so that
required CD_ORIGINDEX layers will be set.  As pilot cases, the Mirror and
Solidify modifiers were updated (see comments in the code).

Some Freestyle-specific code is necessary in DerivedMesh.c so that the
CD_FREESTYLE_EDGE/FACE layers will be transferred from meshes to derived
meshes.  This seems unnecessary, so further investigation is foreseen.
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/modifiers/intern/MOD_mirror.c
source/blender/modifiers/intern/MOD_solidify.c
source/blender/render/intern/source/convertblender.c