style cleanup

This commit is contained in:
2012-05-22 22:03:41 +00:00
parent d2a37d464a
commit dab1d8e487
18 changed files with 66 additions and 65 deletions

View File

@@ -617,7 +617,7 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, char cm
char axis;
/* Initialize */
switch(key_type) {
switch (key_type) {
case XKEY:
axis = 'X';
constraint_axis = CON_AXIS0;
@@ -1141,9 +1141,11 @@ int calculateTransformCenter(bContext *C, int centerMode, float *cent3d, int *ce
calculateCenter(t);
if(cent2d)
if (cent2d) {
copy_v2_v2_int(cent2d, t->center2d);
if(cent3d) {
}
if (cent3d) {
// Copy center from constraint center. Transform center can be local
copy_v3_v3(cent3d, t->con.center);
}

View File

@@ -1920,10 +1920,10 @@ static void VertsToTransData(TransInfo *t, TransData *td, TransDataExtension *tx
td->val = bweight;
td->ival = bweight ? *(bweight) : 1.0f;
}
else if(t->mode == TFM_SKIN_RESIZE) {
else if (t->mode == TFM_SKIN_RESIZE) {
MVertSkin *vs = CustomData_bmesh_get(&em->bm->vdata,
eve->head.data,
CD_MVERT_SKIN);
eve->head.data,
CD_MVERT_SKIN);
/* skin node size */
td->ext = tx;
copy_v3_v3(tx->isize, vs->radius);