style cleanup
This commit is contained in:
@@ -183,7 +183,7 @@ static int mathutils_bmloopcol_set(BaseMathObject *bmo, int UNUSED(subtype))
|
||||
static int mathutils_bmloopcol_get_index(BaseMathObject *bmo, int subtype, int UNUSED(index))
|
||||
{
|
||||
/* lazy, avoid repeteing the case statement */
|
||||
if(mathutils_bmloopcol_get(bmo, subtype) == -1)
|
||||
if (mathutils_bmloopcol_get(bmo, subtype) == -1)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ static int mathutils_bmloopcol_set_index(BaseMathObject *bmo, int subtype, int i
|
||||
const float f = bmo->data[index];
|
||||
|
||||
/* lazy, avoid repeteing the case statement */
|
||||
if(mathutils_bmloopcol_get(bmo, subtype) == -1)
|
||||
if (mathutils_bmloopcol_get(bmo, subtype) == -1)
|
||||
return -1;
|
||||
|
||||
bmo->data[index] = f;
|
||||
|
||||
@@ -116,7 +116,7 @@ static PyObject *bpy_bmeditselseq_add(BPy_BMEditSelSeq *self, BPy_BMElem *value)
|
||||
|
||||
BPY_BM_CHECK_OBJ(value);
|
||||
|
||||
if (self->bm != value->bm) {
|
||||
if (self->bm != value->bm) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"Element is not from this mesh");
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user