[Bf-blender-cvs] [01738f7ad97] greasepencil-object: Change range limit for line_width

Antonio Vazquez noreply at git.blender.org
Thu Jul 6 12:01:15 CEST 2017


Commit: 01738f7ad9750dbc8ad2f4bde619bb90989a9277
Author: Antonio Vazquez
Date:   Thu Jul 6 12:01:01 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB01738f7ad9750dbc8ad2f4bde619bb90989a9277

Change range limit for line_width

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

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 feeff24585b..9b799e69206 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -136,25 +136,15 @@ static int rna_GPencilLayer_active_frame_editable(PointerRNA *ptr, const char **
 }
 
 static void rna_GPencilLayer_line_width_range(PointerRNA *ptr, int *min, int *max,
-                                              int *softmin, int *softmax)
+	int *softmin, int *softmax)
 {
 	bGPDlayer *gpl = ptr->data;
-	
-		/* From GP v2 this value is used to increase or decrease the thickness of the stroke */
-	if (gpl->flag & GP_LAYER_VOLUMETRIC) {
-		*min = -300;
-		*max = 300;
-		
-		*softmin = -100;
-		*softmax = 100;
-	}
-	else {
-		*min = -50;
-		*max = 50;
-		
-		*softmin = -50;
-		*softmax = 50;
-	}
+
+	*min = -300;
+	*max = 300;
+
+	*softmin = -100;
+	*softmax = 100;
 }
 
 /* set parent */




More information about the Bf-blender-cvs mailing list