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:
authorCampbell Barton <ideasman42@gmail.com>2017-09-02 17:05:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-09-02 17:05:11 +0300
commit32e36a17824336c5438b1e84542319480c87883c (patch)
tree25171391bb58f1f492d569df26b1f102f60605d2 /source/blender/python/bmesh
parent3750389ce3f3b6b386986c33608d6aed348e6f7e (diff)
Correct own error simplifying matrix checks
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r--source/blender/python/bmesh/bmesh_py_ops_call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_ops_call.c b/source/blender/python/bmesh/bmesh_py_ops_call.c
index b8ff0588581..f3fe4ff29e4 100644
--- a/source/blender/python/bmesh/bmesh_py_ops_call.c
+++ b/source/blender/python/bmesh/bmesh_py_ops_call.c
@@ -205,7 +205,7 @@ static int bpy_slot_from_py(
if (!Matrix_ParseAny(value, &pymat)) {
return -1;
}
- if ((size = (pymat->num_col) != pymat->num_row) || (!ELEM(size, 3, 4))) {
+ if (((size = pymat->num_col) != pymat->num_row) || (!ELEM(size, 3, 4))) {
PyErr_Format(PyExc_TypeError,
"%.200s: keyword \"%.200s\" expected a 3x3 or 4x4 matrix Matrix",
opname, slot_name);