Freestyle Python API improvements - part 7.

Fix for PyGetSetDef and proper handling of keyword arguments were done in
UnaryPredicate0D, UnaryPredicate1D, BinaryPredicate1D, and StrokeShader classes.
Style modules were updated accordingly.  Additional code clean-up was also made.
This commit is contained in:
2013-02-23 01:12:23 +00:00
parent 0fb83d78fa
commit 68b0a8e390
51 changed files with 654 additions and 615 deletions

View File

@@ -20,9 +20,11 @@ static char FalseUP0D___doc__[] =
" :return: False.\n"
" :rtype: bool\n";
static int FalseUP0D___init__( BPy_FalseUP0D* self, PyObject *args)
static int FalseUP0D___init__(BPy_FalseUP0D* self, PyObject *args, PyObject *kwds)
{
if(!( PyArg_ParseTuple(args, "") ))
static const char *kwlist[] = {NULL};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist))
return -1;
self->py_up0D.up0D = new Predicates0D::FalseUP0D();
return 0;