[Bf-blender-cvs] [ab775b6] master: Fix T49102: Angle option of new GP brush settings is too restricted in value

Antonioya noreply at git.blender.org
Wed Aug 17 16:24:54 CEST 2016


Commit: ab775b6ae9930e1fc6b8536f5ca150557286a119
Author: Antonioya
Date:   Wed Aug 17 16:23:05 2016 +0200
Branches: master
https://developer.blender.org/rBab775b6ae9930e1fc6b8536f5ca150557286a119

Fix T49102: Angle option of new GP brush settings is too restricted in value

Now the range is between -90 to 90 degrees to give more customization
options.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index a3b1334..98df127 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2161,10 +2161,10 @@ static void rna_def_gpencil_brush(BlenderRNA *brna)
 	/* Angle when brush is full size */
 	prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE);
 	RNA_def_property_float_sdna(prop, NULL, "draw_angle");
-	RNA_def_property_range(prop, 0.0f, M_PI_2);
+	RNA_def_property_range(prop, -M_PI_2, M_PI_2);
 	RNA_def_property_ui_text(prop, "Angle",
 	                         "Direction of the stroke at which brush gives maximal thickness "
-	                         "(0° for horizontal, 90° for vertical)");
+	                         "(0° for horizontal)");
 	RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
 
 	/* Factor to change brush size depending of angle */




More information about the Bf-blender-cvs mailing list