[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21709] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp: Added a missing wrapper for AdjacencyIterator::isIncoming().
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Mon Jul 20 01:03:26 CEST 2009
Revision: 21709
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21709
Author: kjym3
Date: 2009-07-20 01:03:26 +0200 (Mon, 20 Jul 2009)
Log Message:
-----------
Added a missing wrapper for AdjacencyIterator::isIncoming().
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp 2009-07-19 23:01:25 UTC (rev 21708)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp 2009-07-19 23:03:26 UTC (rev 21709)
@@ -12,10 +12,12 @@
/*--------------- Python API function prototypes for AdjacencyIterator instance -----------*/
static int AdjacencyIterator___init__(BPy_AdjacencyIterator *self, PyObject *args);
+static PyObject * AdjacencyIterator_isIncoming(BPy_AdjacencyIterator *self);
static PyObject * AdjacencyIterator_getObject(BPy_AdjacencyIterator *self);
/*----------------------AdjacencyIterator instance definitions ----------------------------*/
static PyMethodDef BPy_AdjacencyIterator_methods[] = {
+ {"isIncoming", ( PyCFunction ) AdjacencyIterator_isIncoming, METH_NOARGS, "() Returns true if the current ViewEdge is is coming towards the iteration vertex. False otherwise."},
{"getObject", ( PyCFunction ) AdjacencyIterator_getObject, METH_NOARGS, "() Get object referenced by the iterator"},
{NULL, NULL, 0, NULL}
};
@@ -140,6 +142,10 @@
}
+PyObject * AdjacencyIterator_isIncoming(BPy_AdjacencyIterator *self) {
+ return PyBool_from_bool(self->a_it->isIncoming());
+}
+
PyObject * AdjacencyIterator_getObject(BPy_AdjacencyIterator *self) {
ViewEdge *ve = self->a_it->operator*();
More information about the Bf-blender-cvs
mailing list