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:
@@ -23,9 +23,11 @@ static char Length2DBP1D___doc__[] =
|
||||
" :return: True or false.\n"
|
||||
" :rtype: bool\n";
|
||||
|
||||
static int Length2DBP1D___init__( BPy_Length2DBP1D* self, PyObject *args )
|
||||
static int Length2DBP1D___init__(BPy_Length2DBP1D* 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_bp1D.bp1D = new Predicates1D::Length2DBP1D();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user