[Bf-blender-cvs] [1b29756] master: Cleanup: style

Campbell Barton noreply at git.blender.org
Sun Jul 12 19:52:39 CEST 2015


Commit: 1b297567c08a5158bcacc715518a860e59904ae5
Author: Campbell Barton
Date:   Mon Jul 13 03:48:08 2015 +1000
Branches: master
https://developer.blender.org/rB1b297567c08a5158bcacc715518a860e59904ae5

Cleanup: style

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

M	source/blender/blenkernel/intern/linestyle.c
M	source/blender/makesrna/intern/rna_linestyle.c

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

diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c
index 901c6fd..ac2c4e3 100644
--- a/source/blender/blenkernel/intern/linestyle.c
+++ b/source/blender/blenkernel/intern/linestyle.c
@@ -1174,12 +1174,12 @@ LineStyleModifier *BKE_linestyle_geometry_modifier_add(FreestyleLineStyle *lines
 			p->pivot_y = 0.0f;
 			break;
 		}
-	case LS_MODIFIER_SIMPLIFICATION:
-	{
-		LineStyleGeometryModifier_Simplification *p = (LineStyleGeometryModifier_Simplification *)m;
-		p->tolerance = 0.1f;
-		break;
-	}
+		case LS_MODIFIER_SIMPLIFICATION:
+		{
+			LineStyleGeometryModifier_Simplification *p = (LineStyleGeometryModifier_Simplification *)m;
+			p->tolerance = 0.1f;
+			break;
+		}
 		default:
 			return NULL; /* unknown modifier type */
 	}
@@ -1429,7 +1429,7 @@ char *BKE_linestyle_path_to_color_ramp(FreestyleLineStyle *linestyle, ColorBand
 					found = true;
 				break;
 			case LS_MODIFIER_CREASE_ANGLE:
-				if (color_ramp == ((LineStyleColorModifier_CreaseAngle*)m)->color_ramp)
+				if (color_ramp == ((LineStyleColorModifier_CreaseAngle *)m)->color_ramp)
 					found = true;
 				break;
 			case LS_MODIFIER_CURVATURE_3D:
diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c
index 81f3e14..9f5ae22 100644
--- a/source/blender/makesrna/intern/rna_linestyle.c
+++ b/source/blender/makesrna/intern/rna_linestyle.c
@@ -866,7 +866,7 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna)
 
 	srna = RNA_def_struct(brna, "LineStyleColorModifier_Curvature_3D", "LineStyleColorModifier");
 	RNA_def_struct_ui_text(srna, "Curvature 3D",
-						   "Change line color based on the radial curvature of 3D mesh surfaces");
+	                       "Change line color based on the radial curvature of 3D mesh surfaces");
 	rna_def_color_modifier(srna);
 	rna_def_modifier_color_ramp_common(srna, false);
 
@@ -945,7 +945,7 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna)
 
 	srna = RNA_def_struct(brna, "LineStyleAlphaModifier_CreaseAngle", "LineStyleAlphaModifier");
 	RNA_def_struct_ui_text(srna, "Crease Angle",
-						   "Alpha transparency based on the angle between two adjacent faces");
+	                       "Alpha transparency based on the angle between two adjacent faces");
 	rna_def_alpha_modifier(srna);
 	rna_def_modifier_curve_common(srna, false, false);
 
@@ -1079,7 +1079,7 @@ static void rna_def_linestyle_modifiers(BlenderRNA *brna)
 
 	srna = RNA_def_struct(brna, "LineStyleThicknessModifier_Curvature_3D", "LineStyleThicknessModifier");
 	RNA_def_struct_ui_text(srna, "Curvature 3D",
-						   "Line thickness based on the radial curvature of 3D mesh surfaces");
+	                       "Line thickness based on the radial curvature of 3D mesh surfaces");
 	rna_def_thickness_modifier(srna);
 	rna_def_modifier_curve_common(srna, false, false);




More information about the Bf-blender-cvs mailing list