From 252eaed483ca8c0d89708b3d0a2a82076f944229 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Tue, 24 Jun 2014 22:44:53 +0900 Subject: Freestyle: use bool instead of int. Patch contribution by flokkievids (Folkert de Vries). Thanks! --- source/blender/freestyle/intern/python/Director.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/freestyle/intern/python/Director.cpp') diff --git a/source/blender/freestyle/intern/python/Director.cpp b/source/blender/freestyle/intern/python/Director.cpp index f03aa0bcc97..db287fd054d 100644 --- a/source/blender/freestyle/intern/python/Director.cpp +++ b/source/blender/freestyle/intern/python/Director.cpp @@ -121,7 +121,7 @@ int Director_BPy_UnaryPredicate0D___call__(UnaryPredicate0D *up0D, Interface0DIt PyErr_SetString(PyExc_RuntimeError, "Reference to Python object (py_up0D) not initialized"); return -1; } - PyObject *arg = BPy_Interface0DIterator_from_Interface0DIterator(if0D_it, 0); + PyObject *arg = BPy_Interface0DIterator_from_Interface0DIterator(if0D_it, false); if (!arg) return -1; PyObject *result = PyObject_CallMethod((PyObject *)up0D->py_up0D, (char *)"__call__", (char *)"O", arg); @@ -226,7 +226,7 @@ int Director_BPy_UnaryFunction0D___call__(void *uf0D, void *py_uf0D, Interface0D return -1; } PyObject *obj = (PyObject *)py_uf0D; - PyObject *arg = BPy_Interface0DIterator_from_Interface0DIterator(if0D_it, 0); + PyObject *arg = BPy_Interface0DIterator_from_Interface0DIterator(if0D_it, false); if (!arg) return -1; PyObject *result = PyObject_CallMethod(obj, (char *)"__call__", (char *)"O", arg); -- cgit v1.2.3