style cleanup
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user