[Bf-blender-cvs] [5aa728ec7eb] blender2.8: Cleanup: style

Campbell Barton noreply at git.blender.org
Tue Nov 20 19:26:05 CET 2018


Commit: 5aa728ec7eb8833daeb602ed4e8ccffff58880f2
Author: Campbell Barton
Date:   Wed Nov 21 05:25:42 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB5aa728ec7eb8833daeb602ed4e8ccffff58880f2

Cleanup: style

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

M	source/blender/blenkernel/intern/DerivedMesh.c
M	source/blender/blenkernel/intern/studiolight.c
M	source/blender/editors/transform/transform_gizmo_3d.c

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

diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index 3d3a876f0e6..54aa46d8b85 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -1990,7 +1990,7 @@ static void mesh_build_extra_data(struct Depsgraph *depsgraph, Object *ob)
 	}
 }
 
-static void mesh_runtime_check_normals_valid(const Mesh* mesh)
+static void mesh_runtime_check_normals_valid(const Mesh *mesh)
 {
 	UNUSED_VARS_NDEBUG(mesh);
 	BLI_assert(!(mesh->runtime.cd_dirty_vert & CD_MASK_NORMAL));
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c
index f3d0c8c52f4..f949fcaea07 100644
--- a/source/blender/blenkernel/intern/studiolight.c
+++ b/source/blender/blenkernel/intern/studiolight.c
@@ -637,7 +637,7 @@ static void studiolight_spherical_harmonics_apply_band_factors(StudioLight *sl,
 
 	int index = 0, dst_idx = 0;
 	for (int band = 0; band < STUDIOLIGHT_SH_BANDS; band++) {
-		for (int m = 0; m < SQUARE(band+1) - SQUARE(band); m++) {
+		for (int m = 0; m < SQUARE(band + 1) - SQUARE(band); m++) {
 			/* Skip L3 */
 			if (band != 3) {
 				mul_v3_v3fl(sl->spherical_harmonics_coefs[dst_idx++], sh[index], sl_sh_band_factors[band]);
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index db8b3495826..6f3cef7c09d 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -899,11 +899,11 @@ int ED_transform_calc_gizmo_stats(
 								totsel++;
 							}
 							if ((ebo->flag & BONE_ROOTSEL) &&
-								/* don't include same point multiple times */
-								((ebo->flag & BONE_CONNECTED) &&
-								 (ebo->parent != NULL) &&
-								 (ebo->parent->flag & BONE_TIPSEL) &&
-								 EBONE_VISIBLE(arm, ebo->parent)) == 0)
+							    /* don't include same point multiple times */
+							    ((ebo->flag & BONE_CONNECTED) &&
+							     (ebo->parent != NULL) &&
+							     (ebo->parent->flag & BONE_TIPSEL) &&
+							     EBONE_VISIBLE(arm, ebo->parent)) == 0)
 							{
 								calc_tw_center_with_matrix(tbounds, ebo->head, use_mat_local, mat_local);
 								totsel++;



More information about the Bf-blender-cvs mailing list