[Bf-blender-cvs] [e47a41e] master: Code Cleanup: style

Campbell Barton noreply at git.blender.org
Thu Jan 9 01:45:14 CET 2014


Commit: e47a41e3fc5299c1416487972297e7de69472f1b
Author: Campbell Barton
Date:   Thu Jan 9 11:44:14 2014 +1100
https://developer.blender.org/rBe47a41e3fc5299c1416487972297e7de69472f1b

Code Cleanup: style

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

M	source/blender/blenkernel/tracking_private.h
M	source/blender/bmesh/tools/bmesh_bevel.c
M	source/blender/compositor/intern/COM_ExecutionGroup.cpp
M	source/blender/editors/mesh/editmesh_bisect.c
M	source/blender/editors/object/object_warp.c
M	source/blender/makesrna/intern/rna_rigidbody.c

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

diff --git a/source/blender/blenkernel/tracking_private.h b/source/blender/blenkernel/tracking_private.h
index 1a46b34..9d6c901 100644
--- a/source/blender/blenkernel/tracking_private.h
+++ b/source/blender/blenkernel/tracking_private.h
@@ -32,8 +32,8 @@
  * by multiple tracking files but which should not be public.
  */
 
-#ifndef __BKE_TRACKING_PRIVATE__
-#define __BKE_TRACKING_PRIVATE__
+#ifndef __TRACKING_PRIVATE__
+#define __TRACKING_PRIVATE__
 
 struct GHash;
 struct MovieTracking;
@@ -81,4 +81,4 @@ void tracking_set_marker_coords_from_tracking(int frame_width, int frame_height,
 void tracking_marker_insert_disabled(struct MovieTrackingTrack *track, const struct MovieTrackingMarker *ref_marker,
                                      bool before, bool overwrite);
 
-#endif  /* __BKE_TRACKING_PRIVATE__ */
+#endif  /* __TRACKING_PRIVATE__ */
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index b0198fd..0024e17 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -2437,8 +2437,10 @@ static bool tri_corner_test(BevelParams *bp, BevVert *bv)
 	}
 	angdiff = fabsf(totang - 3.0f * (float)M_PI_2);
 	if ((bp->pro_super_r == PRO_SQUARE_R && angdiff > (float)M_PI/16.0f) ||
-			angdiff > (float)M_PI_4)
+	    (angdiff > (float)M_PI_4))
+	{
 		return false;
+	}
 	return true;
 }
 
diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.cpp b/source/blender/compositor/intern/COM_ExecutionGroup.cpp
index a4ff1ce..a2e4e80 100644
--- a/source/blender/compositor/intern/COM_ExecutionGroup.cpp
+++ b/source/blender/compositor/intern/COM_ExecutionGroup.cpp
@@ -647,7 +647,7 @@ void ExecutionGroup::setRenderBorder(float xmin, float xmax, float ymin, float y
 	NodeOperation *operation = this->getOutputNodeOperation();
 
 	if (operation->isOutputOperation(true)) {
-		/* Basically, setting border need to happen for only operatoins
+		/* Basically, setting border need to happen for only operations
 		 * which operates in render resolution buffers (like compositor
 		 * output nodes).
 		 *
diff --git a/source/blender/editors/mesh/editmesh_bisect.c b/source/blender/editors/mesh/editmesh_bisect.c
index 4b52151..fe49d9a 100644
--- a/source/blender/editors/mesh/editmesh_bisect.c
+++ b/source/blender/editors/mesh/editmesh_bisect.c
@@ -176,7 +176,7 @@ static int mesh_bisect_modal(bContext *C, wmOperator *op, const wmEvent *event)
 
 	/* update or clear modal callout */
 	if (event->type == EVT_MODAL_MAP) {
-		if(event->val == GESTURE_MODAL_BEGIN) {
+		if (event->val == GESTURE_MODAL_BEGIN) {
 			ED_area_headerprint(CTX_wm_area(C), IFACE_("LMB: Release to confirm cut line"));
 		}
 		else {
diff --git a/source/blender/editors/object/object_warp.c b/source/blender/editors/object/object_warp.c
index 06b59a8..614939e 100644
--- a/source/blender/editors/object/object_warp.c
+++ b/source/blender/editors/object/object_warp.c
@@ -192,7 +192,7 @@ static int object_warp_verts_exec(bContext *C, wmOperator *op)
 
 
 	ED_transverts_create_from_obedit(&tvs, obedit, TM_ALL_JOINTS | TM_SKIP_HANDLES);
-	if (tvs.transverts == 0) {
+	if (tvs.transverts == NULL) {
 		return OPERATOR_CANCELLED;
 	}
 
diff --git a/source/blender/makesrna/intern/rna_rigidbody.c b/source/blender/makesrna/intern/rna_rigidbody.c
index 58fc9ab..b0a66ab 100644
--- a/source/blender/makesrna/intern/rna_rigidbody.c
+++ b/source/blender/makesrna/intern/rna_rigidbody.c
@@ -76,13 +76,14 @@ EnumPropertyItem rigidbody_constraint_type_items[] = {
 	{RBC_TYPE_MOTOR, "MOTOR", ICON_NONE, "Motor", "Drive rigid body around or along an axis"},
 	{0, NULL, 0, NULL, NULL}};
 
+#ifndef RNA_RUNTIME
 /* mesh source for collision shape creation */
-EnumPropertyItem rigidbody_mesh_source_items[] = {
+static EnumPropertyItem rigidbody_mesh_source_items[] = {
 	{RBO_MESH_BASE, "BASE", 0, "Base", "Base mesh"},
 	{RBO_MESH_DEFORM, "DEFORM", 0, "Deform", "Deformations (shaps keys, deform modifiers"},
 	{RBO_MESH_FINAL, "FINAL", 0, "Final", "All modifiers"},
 	{0, NULL, 0, NULL, NULL}};
-
+#endif
 
 #ifdef RNA_RUNTIME




More information about the Bf-blender-cvs mailing list