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:
@@ -28,13 +28,13 @@ static char EqualToChainingTimeStampUP1D___doc__[] =
|
||||
" :return: True if the time stamp is equal to a user-defined value.\n"
|
||||
" :rtype: bool\n";
|
||||
|
||||
static int EqualToChainingTimeStampUP1D___init__( BPy_EqualToChainingTimeStampUP1D* self, PyObject *args )
|
||||
static int EqualToChainingTimeStampUP1D___init__(BPy_EqualToChainingTimeStampUP1D* self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static const char *kwlist[] = {"ts", NULL};
|
||||
unsigned u;
|
||||
|
||||
if( !PyArg_ParseTuple(args, "I", &u) )
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "I", (char **)kwlist, &u))
|
||||
return -1;
|
||||
|
||||
self->py_up1D.up1D = new Predicates1D::EqualToChainingTimeStampUP1D(u);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user