diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-07 14:52:53 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-07 14:55:03 +0300 |
commit | 331f8500569df9b3b2aa776c5bcaad7b99c57295 (patch) | |
tree | 93547846177ff3415f9564ca54cb8f13433755cf /source/blender/python/generic | |
parent | 11abeae99fdbfc8f047c4a3c1d2b9b8c47883516 (diff) |
Cleanup: redundant parenthesis
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/imbuf_py_api.c | 8 | ||||
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/python/generic/imbuf_py_api.c b/source/blender/python/generic/imbuf_py_api.c index 056af83cc49..14f1958b71d 100644 --- a/source/blender/python/generic/imbuf_py_api.c +++ b/source/blender/python/generic/imbuf_py_api.c @@ -150,13 +150,13 @@ static PyObject *py_imbuf_crop(Py_ImBuf *self, PyObject *args, PyObject *kw) } if (/* X range. */ - (!(crop.xmin >= 0 && crop.xmax < self->ibuf->x)) || + !(crop.xmin >= 0 && crop.xmax < self->ibuf->x) || /* Y range. */ - (!(crop.ymin >= 0 && crop.ymax < self->ibuf->y)) || + !(crop.ymin >= 0 && crop.ymax < self->ibuf->y) || /* X order. */ - (!(crop.xmin <= crop.xmax)) || + !(crop.xmin <= crop.xmax) || /* Y order. */ - (!(crop.ymin <= crop.ymax))) { + !(crop.ymin <= crop.ymax)) { PyErr_SetString(PyExc_ValueError, "ImBuf crop min/max not in range"); return NULL; } diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index 681c5404ed9..9e140bbe7bd 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -1475,7 +1475,7 @@ bool PyC_RunString_AsNumber(const char *imports[], PyErr_Clear(); } - if (imports && (!PyC_NameSpace_ImportArray(py_dict, imports))) { + if (imports && !PyC_NameSpace_ImportArray(py_dict, imports)) { ok = false; } else if ((retval = PyRun_String(expr, Py_eval_input, py_dict, py_dict)) == NULL) { @@ -1533,7 +1533,7 @@ bool PyC_RunString_AsIntPtr(const char *imports[], py_dict = PyC_DefaultNameSpace(filename); - if (imports && (!PyC_NameSpace_ImportArray(py_dict, imports))) { + if (imports && !PyC_NameSpace_ImportArray(py_dict, imports)) { ok = false; } else if ((retval = PyRun_String(expr, Py_eval_input, py_dict, py_dict)) == NULL) { @@ -1572,7 +1572,7 @@ bool PyC_RunString_AsStringAndSize(const char *imports[], py_dict = PyC_DefaultNameSpace(filename); - if (imports && (!PyC_NameSpace_ImportArray(py_dict, imports))) { + if (imports && !PyC_NameSpace_ImportArray(py_dict, imports)) { ok = false; } else if ((retval = PyRun_String(expr, Py_eval_input, py_dict, py_dict)) == NULL) { |