[Bf-blender-cvs] [e85ca03] GPencil_EditStrokes: GP RNA: Use soft min/max on the line thickness property to make it more controllable

Joshua Leung noreply at git.blender.org
Wed Nov 26 13:31:46 CET 2014


Commit: e85ca034a3b376976075c71f511b4f3d000c4ee6
Author: Joshua Leung
Date:   Thu Nov 27 01:20:45 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rBe85ca034a3b376976075c71f511b4f3d000c4ee6

GP RNA: Use soft min/max on the line thickness property to make it more controllable

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

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

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

diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index e151bdc..edb5727 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -67,7 +67,7 @@ static int rna_GPencilLayer_active_frame_editable(PointerRNA *ptr)
 }
 
 static void rna_GPencilLayer_line_width_range(PointerRNA *ptr, int *min, int *max,
-                                              int *UNUSED(softmin), int *UNUSED(softmax))
+                                              int *softmin, int *softmax)
 {
 	bGPDlayer *gpl = ptr->data;
 	
@@ -81,10 +81,16 @@ static void rna_GPencilLayer_line_width_range(PointerRNA *ptr, int *min, int *ma
 	if (gpl->flag & GP_LAYER_VOLUMETRIC) {
 		*min = 1;
 		*max = 300;
+		
+		*softmin = 1;
+		*softmax = 100;
 	}
 	else {
 		*min = 1;
 		*max = 10;
+		
+		*softmin = 1;
+		*softmax = 10;
 	}
 }




More information about the Bf-blender-cvs mailing list