[Bf-blender-cvs] [156bfaf83ba] greasepencil-object: GPencil: Set Smooth curve by default to Brushes

Antonio Vazquez noreply at git.blender.org
Fri Nov 22 23:51:30 CET 2019


Commit: 156bfaf83ba4b694f2cb91179b5da81a9443eb3d
Author: Antonio Vazquez
Date:   Fri Nov 22 23:42:15 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB156bfaf83ba4b694f2cb91179b5da81a9443eb3d

GPencil: Set Smooth curve by default to Brushes

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

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

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

diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 0049ecee48e..32a89543af2 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -263,6 +263,8 @@ static Brush *gpencil_brush_ensure(
   brush->secondary_rgb[1] = 1.0f;
   brush->secondary_rgb[2] = 1.0f;
 
+  brush->curve_preset = BRUSH_CURVE_SMOOTH;
+
   if (brush->gpencil_settings == NULL) {
     BKE_brush_init_gpencil_settings(brush);
   }
@@ -271,9 +273,9 @@ static Brush *gpencil_brush_ensure(
   if (brush->gpencil_settings) {
     brush->gpencil_settings->vertex_mode = GPPAINT_MODE_STROKE;
     brush->gpencil_settings->vertex_factor = 1.0f;
-  }
 
-  brush->gpencil_settings->weight = 1.0f;
+    brush->gpencil_settings->weight = 1.0f;
+  }
 
   return brush;
 }



More information about the Bf-blender-cvs mailing list