[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53097] branches/soc-2008-mxcurioni/source /blender/python/bmesh/bmesh_py_types.c: Made Freestyle Edge/ Face Marks accessible from Python.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Tue Dec 18 01:07:26 CET 2012


Revision: 53097
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53097
Author:   kjym3
Date:     2012-12-18 00:07:25 +0000 (Tue, 18 Dec 2012)
Log Message:
-----------
Made Freestyle Edge/Face Marks accessible from Python.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/python/bmesh/bmesh_py_types.c

Modified: branches/soc-2008-mxcurioni/source/blender/python/bmesh/bmesh_py_types.c
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/python/bmesh/bmesh_py_types.c	2012-12-17 21:40:28 UTC (rev 53096)
+++ branches/soc-2008-mxcurioni/source/blender/python/bmesh/bmesh_py_types.c	2012-12-18 00:07:25 UTC (rev 53097)
@@ -77,11 +77,12 @@
 };
 
 PyC_FlagSet bpy_bm_hflag_all_flags[] = {
-	{BM_ELEM_SELECT,  "SELECT"},
-	{BM_ELEM_HIDDEN,  "HIDE"},
-	{BM_ELEM_SEAM,    "SEAM"},
-	{BM_ELEM_SMOOTH,  "SMOOTH"},
-	{BM_ELEM_TAG,     "TAG"},
+	{BM_ELEM_SELECT,     "SELECT"},
+	{BM_ELEM_HIDDEN,     "HIDE"},
+	{BM_ELEM_SEAM,       "SEAM"},
+	{BM_ELEM_SMOOTH,     "SMOOTH"},
+	{BM_ELEM_TAG,        "TAG"},
+	{BM_ELEM_FREESTYLE,  "FREESTYLE"},
 	{0, NULL}
 };
 
@@ -101,6 +102,8 @@
 PyDoc_STRVAR(bpy_bm_elem_smooth_doc,  "Smooth state of this element.\n\n:type: boolean");
 PyDoc_STRVAR(bpy_bm_elem_seam_doc,    "Seam for UV unwrapping.\n\n:type: boolean");
 
+PyDoc_STRVAR(bpy_bm_freestyle_edge_mark_doc,  "Freestyle edge mark.\n\n:type: boolean");
+PyDoc_STRVAR(bpy_bm_freestyle_face_mark_doc,  "Freestyle face mark.\n\n:type: boolean");
 
 static PyObject *bpy_bm_elem_hflag_get(BPy_BMElem *self, void *flag)
 {
@@ -662,6 +665,8 @@
 	{(char *)"smooth", (getter)bpy_bm_elem_hflag_get, (setter)bpy_bm_elem_hflag_set, (char *)bpy_bm_elem_smooth_doc, (void *)BM_ELEM_SMOOTH},
 	{(char *)"seam",   (getter)bpy_bm_elem_hflag_get, (setter)bpy_bm_elem_hflag_set, (char *)bpy_bm_elem_seam_doc, (void *)BM_ELEM_SEAM},
 
+	{(char *)"freestyle_edge_mark", (getter)bpy_bm_elem_hflag_get, (setter)bpy_bm_elem_hflag_set, (char *)bpy_bm_freestyle_edge_mark_doc, (void *)BM_ELEM_FREESTYLE},
+
 	/* connectivity data */
 	{(char *)"verts", (getter)bpy_bmelemseq_elem_get, (setter)NULL, (char *)bpy_bmedge_verts_doc, (void *)BM_VERTS_OF_EDGE},
 
@@ -686,6 +691,8 @@
 
 	{(char *)"smooth", (getter)bpy_bm_elem_hflag_get, (setter)bpy_bm_elem_hflag_set, (char *)bpy_bm_elem_smooth_doc, (void *)BM_ELEM_SMOOTH},
 
+	{(char *)"freestyle_face_mark", (getter)bpy_bm_elem_hflag_get, (setter)bpy_bm_elem_hflag_set, (char *)bpy_bm_freestyle_face_mark_doc, (void *)BM_ELEM_FREESTYLE},
+
 	{(char *)"normal", (getter)bpy_bmface_normal_get, (setter)bpy_bmface_normal_set, (char *)bpy_bmface_normal_doc, NULL},
 
 	{(char *)"material_index",  (getter)bpy_bmface_material_index_get, (setter)bpy_bmface_material_index_set, (char *)bpy_bmface_material_index_doc,  NULL},




More information about the Bf-blender-cvs mailing list