[Bf-blender-cvs] [482201d] master: Style cleanup

Campbell Barton noreply at git.blender.org
Sun Mar 30 20:51:44 CEST 2014


Commit: 482201d1a0a2e8002c9c8c8dda9e06b8b5c52fea
Author: Campbell Barton
Date:   Mon Mar 31 05:45:28 2014 +1100
https://developer.blender.org/rB482201d1a0a2e8002c9c8c8dda9e06b8b5c52fea

Style cleanup

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

M	source/blender/collada/ArmatureImporter.cpp
M	source/blender/editors/mask/mask_ops.c
M	source/blender/editors/sculpt_paint/paint_utils.c
M	source/blender/editors/sculpt_paint/sculpt.c
M	source/blender/makesrna/intern/rna_brush.c
M	source/blender/makesrna/intern/rna_smoke.c
M	source/blender/render/intern/include/texture.h
M	source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp

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

diff --git a/source/blender/collada/ArmatureImporter.cpp b/source/blender/collada/ArmatureImporter.cpp
index c52ee65..e65561c 100644
--- a/source/blender/collada/ArmatureImporter.cpp
+++ b/source/blender/collada/ArmatureImporter.cpp
@@ -346,7 +346,7 @@ void ArmatureImporter::create_armature_bones( )
 
 		char * bone_name = (char *)bc_get_joint_name(*ri);
 		Bone *bone = BKE_armature_find_bone_name(armature, bone_name);
-		if(bone) {
+		if (bone) {
 			fprintf(stderr, "Reuse of child bone [%s] as root bone in same Armature is not supported.\n", bone_name);
 			continue;
 		}
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 221c3c6..e8cd97d 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -80,7 +80,7 @@ MaskSplinePoint *ED_mask_point_find_nearest(const bContext *C, Mask *mask, const
 	MaskSplinePoint *point = NULL;
 	float co[2];
 	const float threshold_sq = threshold * threshold;
-	float len_sq= FLT_MAX, scalex, scaley;
+	float len_sq = FLT_MAX, scalex, scaley;
 	eMaskWhichHandle which_handle = MASK_WHICH_HANDLE_NONE;
 	int width, height;
 
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c
index de09709..4f9ca4c 100644
--- a/source/blender/editors/sculpt_paint/paint_utils.c
+++ b/source/blender/editors/sculpt_paint/paint_utils.c
@@ -170,7 +170,7 @@ float paint_get_tex_pixel(MTex *mtex, float u, float v, struct ImagePool *pool,
 	float co[3] = {u, v, 0.0f};
 
 	externtex(mtex, co, &intensity,
-						   rgba, rgba + 1, rgba + 2, rgba + 3, thread, pool);
+	          rgba, rgba + 1, rgba + 2, rgba + 3, thread, pool);
 
 	return intensity;
 }
@@ -182,7 +182,7 @@ void paint_get_tex_pixel_col(MTex *mtex, float u, float v, float rgba[4], struct
 	float intensity;
 
 	hasrgb = externtex(mtex, co, &intensity,
-						   rgba, rgba + 1, rgba + 2, rgba + 3, thread, pool);
+	                   rgba, rgba + 1, rgba + 2, rgba + 3, thread, pool);
 	if (!hasrgb) {
 		rgba[0] = intensity;
 		rgba[1] = intensity;
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index f4d16b8..8b65d2c 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4534,7 +4534,7 @@ static void sculpt_stroke_update_step(bContext *C, struct PaintStroke *UNUSED(st
 		BKE_pbvh_bmesh_detail_size_set(ss->pbvh,
 		                               (ss->cache->radius /
 		                                (float)ups->pixel_radius) *
-									   (float)sd->detail_size / 0.4f);
+		                               (float)sd->detail_size / 0.4f);
 	}
 
 	if (sculpt_stroke_dynamic_topology(ss, brush)) {
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index 67cea35..8b2c55a 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -473,7 +473,7 @@ static EnumPropertyItem *rna_Brush_direction_itemf(bContext *UNUSED(C), PointerR
 }
 
 static EnumPropertyItem *rna_Brush_stroke_itemf(bContext *C, PointerRNA *UNUSED(ptr),
-												   PropertyRNA *UNUSED(prop), bool *UNUSED(r_free))
+                                                PropertyRNA *UNUSED(prop), bool *UNUSED(r_free))
 {
 	static EnumPropertyItem sculpt_stroke_method_items[] = {
 		{0, "DOTS", 0, "Dots", "Apply paint on each mouse move step"},
@@ -486,7 +486,7 @@ static EnumPropertyItem *rna_Brush_stroke_itemf(bContext *C, PointerRNA *UNUSED(
 
 	PaintMode mode = BKE_paintmode_get_active_from_context(C);
 
-	switch(mode) {
+	switch (mode) {
 		case PAINT_SCULPT:
 			return sculpt_stroke_method_items;
 
diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c
index 26a2510..6e0d374 100644
--- a/source/blender/makesrna/intern/rna_smoke.c
+++ b/source/blender/makesrna/intern/rna_smoke.c
@@ -231,7 +231,7 @@ static void rna_SmokeModifier_flame_grid_get(PointerRNA *ptr, float *values)
 	else
 		flame = smoke_get_flame(sds->fluid);
 	
-	if(flame)
+	if (flame)
 		memcpy(values, flame, size * sizeof(float));
 	else
 		memset(values, 0, size * sizeof(float));
diff --git a/source/blender/render/intern/include/texture.h b/source/blender/render/intern/include/texture.h
index 0e0337d..ff5004f 100644
--- a/source/blender/render/intern/include/texture.h
+++ b/source/blender/render/intern/include/texture.h
@@ -35,7 +35,7 @@
 
 #define BRICONT                                                           \
 	texres->tin= (texres->tin-0.5f) * tex->contrast+tex->bright-0.5f;     \
-	if(!(tex->flag & TEX_NO_CLAMP)) {                                     \
+	if (!(tex->flag & TEX_NO_CLAMP)) {                                    \
 		if (texres->tin < 0.0f)      texres->tin= 0.0f;                   \
 		else if (texres->tin > 1.0f) texres->tin= 1.0f;                   \
 	}                                                                     \
@@ -44,7 +44,7 @@
 	texres->tr= tex->rfac*((texres->tr-0.5f)*tex->contrast+tex->bright-0.5f); \
 	texres->tg= tex->gfac*((texres->tg-0.5f)*tex->contrast+tex->bright-0.5f); \
 	texres->tb= tex->bfac*((texres->tb-0.5f)*tex->contrast+tex->bright-0.5f); \
-	if(!(tex->flag & TEX_NO_CLAMP)) {                                         \
+	if (!(tex->flag & TEX_NO_CLAMP)) {                                        \
 		if (texres->tr < 0.0f) texres->tr= 0.0f;                              \
 		if (texres->tg < 0.0f) texres->tg= 0.0f;                              \
 		if (texres->tb < 0.0f) texres->tb= 0.0f;                              \
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp
index 06f85b1..6aa90fb 100644
--- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp
+++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp
@@ -57,7 +57,7 @@ VBO::VBO(RAS_DisplayArray *data, unsigned int indices)
 	this->vertex_offset = (void*)(((RAS_TexVert*)0)->getXYZ());
 	this->normal_offset = (void*)(((RAS_TexVert*)0)->getNormal());
 	this->tangent_offset = (void*)(((RAS_TexVert*)0)->getTangent());
-	this->color_offset = (void*)(((RAS_TexVert*)0)->getRGBA());;
+	this->color_offset = (void*)(((RAS_TexVert*)0)->getRGBA());
 	this->uv_offset = (void*)(((RAS_TexVert*)0)->getUV(0));
 }




More information about the Bf-blender-cvs mailing list