Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python/generic/imbuf_py_api.c')
-rw-r--r--source/blender/python/generic/imbuf_py_api.c8
1 files changed, 4 insertions, 4 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;
}