style cleanup

This commit is contained in:
2012-03-20 04:27:14 +00:00
parent 3427749090
commit be116242d4
13 changed files with 54 additions and 58 deletions

View File

@@ -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;

View File

@@ -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;