[Bf-blender-cvs] [cc02f92] master: Cleanup: style

Campbell Barton noreply at git.blender.org
Mon Oct 6 23:21:42 CEST 2014


Commit: cc02f929f9714b1661fa0b8e2ffedc1d23dd6fd6
Author: Campbell Barton
Date:   Mon Oct 6 21:49:38 2014 +0200
Branches: master
https://developer.blender.org/rBcc02f929f9714b1661fa0b8e2ffedc1d23dd6fd6

Cleanup: style

===================================================================

M	source/blender/editors/sculpt_paint/paint_image_proj.c
M	source/blender/editors/transform/transform.c
M	source/blender/editors/transform/transform_conversions.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 352e633..f9124db 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -5096,7 +5096,7 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
 			DAG_id_tag_update(&ma->id, 0);
 			ED_area_tag_redraw(CTX_wm_area(C));
 			
-			return true;			
+			return true;
 		}
 	}
 	
@@ -5105,9 +5105,12 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
 
 static int texture_paint_add_texture_paint_slot_exec(bContext *C, wmOperator *op)
 {
-	if(proj_paint_add_slot(C, op))
+	if (proj_paint_add_slot(C, op)) {
 		return OPERATOR_FINISHED;
-	else return OPERATOR_CANCELLED;
+	}
+	else {
+		return OPERATOR_CANCELLED;
+	}
 }
 
 
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index c7ff9f0..2449968 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -271,7 +271,8 @@ void convertViewVec(TransInfo *t, float r_vec[3], int dx, int dy)
 			r_vec[0] = dx;
 			r_vec[1] = dy;
 		}
-		else {	const float mval_f[2] = {(float)dx, (float)dy};
+		else {
+			const float mval_f[2] = {(float)dx, (float)dy};
 			ED_view3d_win_to_delta(t->ar, mval_f, r_vec, t->zfac);
 		}
 	}
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index b709808..47adbb6 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1711,7 +1711,9 @@ static void createTransLatticeVerts(TransInfo *t)
 				if (bp->f1 & SELECT) {
 					td->flag = TD_SELECTED;
 				}
-				else td->flag = 0;
+				else {
+					td->flag = 0;
+				}
 				copy_m3_m3(td->smtx, smtx);
 				copy_m3_m3(td->mtx, mtx);




More information about the Bf-blender-cvs mailing list