Commit: df0fdc41788f6db36910624da1841cba6e28eefa
Author: Joshua Leung
Date:   Sat Jul 11 17:46:31 2015 +1200
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rBdf0fdc41788f6db36910624da1841cba6e28eefa

GP Sculpt: Reduce maximum size of brushes to make the UI sliders more 
controllable

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

M       source/blender/makesrna/intern/rna_sculpt_paint.c

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

diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c 
b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 3abdcb8..6f70d12 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -993,8 +993,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, SHRT_MAX);
-       RNA_def_property_ui_range(prop, 1, MAX_BRUSH_PIXEL_RADIUS, 10, 3); // 
XXX: too big
+       RNA_def_property_range(prop, 1, MAX_BRUSH_PIXEL_RADIUS);
+       RNA_def_property_ui_range(prop, 1, 100, 10, 3); // XXX: too big
        RNA_def_property_ui_text(prop, "Radius", "Radius of the brush in 
pixels");
 
        prop = RNA_def_property(srna, "strength", PROP_FLOAT, PROP_FACTOR);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to