From 894c240f9d007271e9d587d3c1b6f961c445b1b8 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Wed, 13 Mar 2013 06:44:43 +0000 Subject: New implementation of Freestyle edge/face marks The previous implementation of Freestyle edge/face marks was refactored based on suggestions from the latest code review by Campbell. The new implementation relies on mesh CustomData to store edge/face marks, instead of introducing extra flags in the core Mesh and BMesh data structures. The CustomData-based implementation will allow further additions of new edge/face attributes because of the independence from Mesh/BMesh. This revision is work in progress, mainly intended to address the review comments and ask for further code review in view of the trunk merger in the upcoming 2.67 release. --- source/blender/makesdna/DNA_mesh_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna/DNA_mesh_types.h') diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 042a353642a..c125518ba73 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -179,6 +179,8 @@ typedef struct TFace { #define ME_CDFLAG_VERT_BWEIGHT (1 << 0) #define ME_CDFLAG_EDGE_BWEIGHT (1 << 1) #define ME_CDFLAG_EDGE_CREASE (1 << 2) +#define ME_CDFLAG_FREESTYLE_EDGE (1 << 3) +#define ME_CDFLAG_FREESTYLE_FACE (1 << 4) /* me->drawflag, short */ #define ME_DRAWEDGES (1 << 0) -- cgit v1.2.3