[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53630] trunk/blender/source/blender/ python/bmesh/bmesh_py_types.c: Add normal_flip() member to Python BMesh' s Face.
Howard Trickey
howard.trickey at gmail.com
Mon Jan 7 13:19:01 CET 2013
Revision: 53630
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53630
Author: howardt
Date: 2013-01-07 12:19:00 +0000 (Mon, 07 Jan 2013)
Log Message:
-----------
Add normal_flip() member to Python BMesh's Face.
Modified Paths:
--------------
trunk/blender/source/blender/python/bmesh/bmesh_py_types.c
Modified: trunk/blender/source/blender/python/bmesh/bmesh_py_types.c
===================================================================
--- trunk/blender/source/blender/python/bmesh/bmesh_py_types.c 2013-01-07 12:16:11 UTC (rev 53629)
+++ trunk/blender/source/blender/python/bmesh/bmesh_py_types.c 2013-01-07 12:19:00 UTC (rev 53630)
@@ -1616,6 +1616,21 @@
}
+PyDoc_STRVAR(bpy_bmface_normal_flip_doc,
+".. method:: normal_flip()\n"
+"\n"
+" Reverses winding of a face, which flips its normal.\n"
+);
+static PyObject *bpy_bmface_normal_flip(BPy_BMFace *self)
+{
+ BPY_BM_CHECK_OBJ(self);
+
+ BM_face_normal_flip(self->bm, self->f);
+
+ Py_RETURN_NONE;
+}
+
+
/* Loop
* ---- */
@@ -2424,6 +2439,7 @@
{"calc_center_bounds", (PyCFunction)bpy_bmface_calc_center_bounds, METH_NOARGS, bpy_bmface_calc_center_bounds_doc},
{"normal_update", (PyCFunction)bpy_bmface_normal_update, METH_NOARGS, bpy_bmface_normal_update_doc},
+ {"normal_flip", (PyCFunction)bpy_bmface_normal_flip, METH_NOARGS, bpy_bmface_normal_flip_doc},
{NULL, NULL, 0, NULL}
};
More information about the Bf-blender-cvs
mailing list