[Bf-blender-cvs] [dff3ea0647a] greasepencil-object: Change default smooth parameters for brushes

Antonio Vazquez noreply at git.blender.org
Wed Jan 17 14:14:33 CET 2018


Commit: dff3ea0647a57fafa184b1b68401d14b3a0b81c9
Author: Antonio Vazquez
Date:   Wed Jan 17 14:14:17 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBdff3ea0647a57fafa184b1b68401d14b3a0b81c9

Change default smooth parameters for brushes

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

M	source/blender/blenkernel/intern/gpencil.c

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

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 330f765f60c..a89e088d5a8 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -579,8 +579,8 @@ void BKE_gpencil_brush_init_presets(ToolSettings *ts)
 	brush->draw_angle = 0.0f;
 	brush->draw_angle_factor = 0.0f;
 
-	brush->draw_smoothfac = 1.0f;
-	brush->draw_smoothlvl = 3;
+	brush->draw_smoothfac = 0.5f;
+	brush->draw_smoothlvl = 1;
 	brush->thick_smoothfac = 1.0f;
 	brush->thick_smoothlvl = 3;
 	brush->sublevel = 1;
@@ -606,8 +606,8 @@ void BKE_gpencil_brush_init_presets(ToolSettings *ts)
 	brush->draw_angle = 0.0f;
 	brush->draw_angle_factor = 0.0f;
 
-	brush->draw_smoothfac = 1.0f;
-	brush->draw_smoothlvl = 3;
+	brush->draw_smoothfac = 0.5f;
+	brush->draw_smoothlvl = 1;
 	brush->sublevel = 1;
 	brush->thick_smoothfac = 1.0f;
 	brush->thick_smoothlvl = 3;
@@ -631,8 +631,8 @@ void BKE_gpencil_brush_init_presets(ToolSettings *ts)
 	brush->draw_angle = 0.0f;
 	brush->draw_angle_factor = 0.0f;
 
-	brush->draw_smoothfac = 1.0f;
-	brush->draw_smoothlvl = 3;
+	brush->draw_smoothfac = 0.5f;
+	brush->draw_smoothlvl = 1;
 	brush->thick_smoothfac = 1.0f;
 	brush->thick_smoothlvl = 3;
 	brush->sublevel = 1;
@@ -719,8 +719,8 @@ void BKE_gpencil_brush_init_presets(ToolSettings *ts)
 	brush->draw_angle = M_PI_4; /* 45 degrees */
 	brush->draw_angle_factor = 1.0f;
 
-	brush->draw_smoothfac = 1.0f;
-	brush->draw_smoothlvl = 3;
+	brush->draw_smoothfac = 0.5f;
+	brush->draw_smoothlvl = 1;
 	brush->thick_smoothfac = 1.0f;
 	brush->thick_smoothlvl = 3;
 	brush->sublevel = 1;
@@ -764,6 +764,12 @@ void BKE_gpencil_brush_init_presets(ToolSettings *ts)
 	brush->fill_simplylvl = 1;
 	brush->icon = GPBRUSH_FILL;
 
+	brush->draw_smoothfac = 0.5f;
+	brush->draw_smoothlvl = 1;
+	brush->thick_smoothfac = 1.0f;
+	brush->thick_smoothlvl = 3;
+	brush->sublevel = 1;
+
 	brush->draw_strength = 1.0f;
 	copy_v3_v3(brush->curcolor, curcolor);
 }



More information about the Bf-blender-cvs mailing list