Sys.c was getting the path seperator out of the python dict and converting it to a char for all path functions.
made DIRSEP a constant and refer to that directly. Draw.c's PupBlock limit was 24, made 120 to match blenders internal limit.
This commit is contained in:
@@ -1416,8 +1416,8 @@ static PyObject *Method_PupBlock( PyObject * self, PyObject * args )
|
||||
if (len == 0)
|
||||
return EXPP_ReturnPyObjError( PyExc_ValueError, "expected a string and a non-empty sequence." );
|
||||
|
||||
if (len > 24) /* LIMIT DEFINED IN toolbox.c */
|
||||
return EXPP_ReturnPyObjError( PyExc_ValueError, "sequence cannot have more than 24 elements" );
|
||||
if (len > 120) /* LIMIT DEFINED IN toolbox.c */
|
||||
return EXPP_ReturnPyObjError( PyExc_ValueError, "sequence cannot have more than 120 elements" );
|
||||
|
||||
for ( i=0 ; i<len ; i++ ) {
|
||||
PyObject *pyMin = NULL, *pyMax = NULL;
|
||||
|
||||
Reference in New Issue
Block a user