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

@@ -1170,17 +1170,13 @@ static void edgetag_context_set(BMEditMesh *em, Scene *scene, BMEdge *e, int val
case EDGE_MODE_TAG_CREASE: case EDGE_MODE_TAG_CREASE:
{ {
float *crease = CustomData_bmesh_get(&em->bm->edata, e->head.data, CD_CREASE); float *crease = CustomData_bmesh_get(&em->bm->edata, e->head.data, CD_CREASE);
*crease = (val) ? 1.0f : 0.0f;
if (val) *crease = 1.0f;
else *crease = 0.0f;
break; break;
} }
case EDGE_MODE_TAG_BEVEL: case EDGE_MODE_TAG_BEVEL:
{ {
float *bweight = CustomData_bmesh_get(&em->bm->edata, e->head.data, CD_BWEIGHT); float *bweight = CustomData_bmesh_get(&em->bm->edata, e->head.data, CD_BWEIGHT);
*bweight = (val) ? 1.0f : 0.0f;
if (val) *bweight = 1.0f;
else *bweight = 0.0f;
break; break;
} }
} }