Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-05-21 17:35:13 +0300
committerAntonioya <blendergit@gmail.com>2019-05-21 17:35:24 +0300
commita25b8f531a7abab33fdbe9beedcfe53cc1132c0a (patch)
tree28d7fdccbb8405d3a938c54c09a6798b0724bde0 /source/blender/makesrna/intern/rna_gpencil.c
parent030725a9e5b8a46dc1909c9e1b85c3aba506ae6d (diff)
Fix T64936: Grease Pencil point pressure max value too low
The API had an old limit of 1.0f.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil.c')
-rw-r--r--source/blender/makesrna/intern/rna_gpencil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 8015b40bccb..cf6d85adc62 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -844,7 +844,7 @@ static void rna_def_gpencil_stroke_point(BlenderRNA *brna)
prop = RNA_def_property(srna, "pressure", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_float_sdna(prop, NULL, "pressure");
- RNA_def_property_range(prop, 0.0f, 1.0f);
+ RNA_def_property_range(prop, 0.0f, FLT_MAX);
RNA_def_property_ui_text(prop, "Pressure", "Pressure of tablet at point when drawing it");
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");
@@ -895,11 +895,11 @@ static void rna_def_gpencil_stroke_points_api(BlenderRNA *brna, PropertyRNA *cpr
"pressure",
1.0f,
0.0f,
- 1.0f,
+ FLT_MAX,
"Pressure",
"Pressure for newly created points",
0.0f,
- 1.0f);
+ FLT_MAX);
RNA_def_float(func,
"strength",
1.0f,