Cleanup: use bool instead of int in various places

This commit is contained in:
2020-09-02 19:10:18 +02:00
parent f20f82ce3e
commit f5e55c3337
48 changed files with 264 additions and 270 deletions

View File

@@ -3301,13 +3301,13 @@ static bool Matrix_ParseCheck(MatrixObject *pymat)
if (!MatrixObject_Check(pymat)) {
PyErr_Format(
PyExc_TypeError, "expected a mathutils.Matrix, not a %.200s", Py_TYPE(pymat)->tp_name);
return 0;
return false;
}
/* sets error */
if (BaseMath_ReadCallback(pymat) == -1) {
return 0;
return false;
}
return 1;
return true;
}
int Matrix_ParseAny(PyObject *o, void *p)