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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-31 14:33:27 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-31 14:33:27 +0400
commit1360bb6fb0bf0c5c14235c47bf1399accbcecc6f (patch)
treed7c54ffecd745f9f390e8b4e9283843a8fa704ef /source/blender/blenkernel/intern/mesh.c
parent829a2cc1b0495a70ca8333f29023bc2414a465f8 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r--source/blender/blenkernel/intern/mesh.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 4c963969797..408fadde564 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -2636,16 +2636,6 @@ int BKE_mesh_recalc_tessellation(CustomData *fdata,
}
}
-#ifdef WITH_FREESTYLE
- if (CustomData_has_layer(pdata, CD_FREESTYLE_FACE)) {
- FreestyleEdge *poly_ffa = CustomData_get_layer(pdata, CD_FREESTYLE_FACE);
- FreestyleEdge *face_ffa = CustomData_add_layer(fdata, CD_FREESTYLE_FACE, CD_CALLOC, NULL, totface);
- for (mface_index = 0; mface_index < totface; mface_index++) {
- face_ffa[mface_index] = poly_ffa[mface_to_poly_map[mface_index]];
- }
- }
-#endif
-
mf = mface;
for (mface_index = 0; mface_index < totface; mface_index++, mf++) {