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.
This commit is contained in:
Antonio Vazquez 2016-08-17 16:23:05 +02:00
parent 47e08ee924
commit ab775b6ae9
Notes: blender-bot 2023-02-14 07:40:57 +01:00
Referenced by issue #49102, Angle option of new GP brush settings is too restricted in value
1 changed files with 2 additions and 2 deletions

View File

@ -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 */