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-04 07:23:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-09-04 07:35:35 +0300
commit85d53620aa698029c83c9b596dbd4dcc8bb5c6da (patch)
treed8cc29803927b6dbf86f6d03b05fa321fa97e322 /source/blender/python/bmesh
parent718af8e8b35b2ecef62fb4311ac5fb76134e8846 (diff)
Cleanup: avoid confusing assignment
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r--source/blender/python/bmesh/bmesh_py_ops_call.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_ops_call.c b/source/blender/python/bmesh/bmesh_py_ops_call.c
index f3fe4ff29e4..6598d402f72 100644
--- a/source/blender/python/bmesh/bmesh_py_ops_call.c
+++ b/source/blender/python/bmesh/bmesh_py_ops_call.c
@@ -200,12 +200,12 @@ static int bpy_slot_from_py(
{
/* XXX - BMesh operator design is crappy here, operator slot should define matrix size,
* not the caller! */
- unsigned short size;
MatrixObject *pymat;
if (!Matrix_ParseAny(value, &pymat)) {
return -1;
}
- if (((size = pymat->num_col) != pymat->num_row) || (!ELEM(size, 3, 4))) {
+ const ushort size = pymat->num_col;
+ if ((size != pymat->num_row) || (!ELEM(size, 3, 4))) {
PyErr_Format(PyExc_TypeError,
"%.200s: keyword \"%.200s\" expected a 3x3 or 4x4 matrix Matrix",
opname, slot_name);