From acfd7c82abdc26b7cd2859e762f12cc066a4ef68 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 3 Apr 2009 20:03:09 +0000 Subject: Relaxed type checking concerning boolean arguments in class constructors and __call__ methods so that not only True and False but also various other boolean expressions (e.g., 0, 1, and None) are accepted. --- source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp') diff --git a/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp b/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp index f7c5e261db5..6bca6db2cb7 100644 --- a/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp +++ b/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp @@ -354,7 +354,7 @@ PyObject *Stroke_setTextureId( BPy_Stroke *self , PyObject *args) { PyObject *Stroke_setTips( BPy_Stroke *self , PyObject *args) { PyObject *py_b; - if(!( PyArg_ParseTuple(args, "O!", &PyBool_Type, &py_b) )) + if(!( PyArg_ParseTuple(args, "O", &py_b) )) return NULL; self->s->setTips( bool_from_PyBool(py_b) ); -- cgit v1.2.3