[Bf-blender-cvs] [2bb3c94b542] greasepencil-object: Increase again the maximum value for sculpt brushes

Antonio Vazquez noreply at git.blender.org
Tue Dec 5 11:15:39 CET 2017


Commit: 2bb3c94b54205bb2b166a9b61298c50081104277
Author: Antonio Vazquez
Date:   Tue Dec 5 11:14:46 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB2bb3c94b54205bb2b166a9b61298c50081104277

Increase again the maximum value for sculpt brushes

For some operations the old value was too small.

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

M	source/blender/makesdna/DNA_brush_types.h
M	source/blender/makesrna/intern/rna_sculpt_paint.c

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

diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h
index 070a2c2c1b7..8efe8306d83 100644
--- a/source/blender/makesdna/DNA_brush_types.h
+++ b/source/blender/makesdna/DNA_brush_types.h
@@ -403,6 +403,7 @@ enum {
 };
 
 #define MAX_BRUSH_PIXEL_RADIUS 500
+#define GP_MAX_BRUSH_PIXEL_RADIUS 1000
 
 /* Grease Pencil Stroke styles */
 #define STROKE_STYLE_SOLID	0
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 5a8d4997744..2d9d23b03f0 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -1126,8 +1126,8 @@ static void rna_def_gpencil_sculpt(BlenderRNA *brna)
 	RNA_def_struct_ui_text(srna, "GPencil Sculpt Brush", "Stroke editing brush");
 
 	prop = RNA_def_property(srna, "size", PROP_INT, PROP_PIXEL);
-	RNA_def_property_range(prop, 1, MAX_BRUSH_PIXEL_RADIUS);
-	RNA_def_property_ui_range(prop, 1, 250, 10, 3); 
+	RNA_def_property_range(prop, 1, GP_MAX_BRUSH_PIXEL_RADIUS);
+	RNA_def_property_ui_range(prop, 1, 500, 10, 3); 
 	RNA_def_property_ui_text(prop, "Radius", "Radius of the brush in pixels");
 	RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL);



More information about the Bf-blender-cvs mailing list