diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-26 21:58:18 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-26 21:58:30 +0300 |
commit | 96af590d58ecbcadd03027084ebe067260b17fe0 (patch) | |
tree | 7a2df4d0fdb6699d1bd27d0550509b0fd3f42de0 /source/blender/makesrna/intern/rna_gpencil_modifier.c | |
parent | 69b3c26e75f00c2b3b4baf78b56733cd8662e8ef (diff) |
GPencil: Change HSV modifier to use the same range of parameter that other areas of Blender
The value of the Hue must be between 0 and 1, but the value was between 0 and 2.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil_modifier.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index 1e35db8a64f..2dabaeebb09 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -988,8 +988,8 @@ static void rna_def_modifier_gpencilcolor(BlenderRNA *brna) RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); prop = RNA_def_property(srna, "hue", PROP_FLOAT, PROP_NONE); - RNA_def_property_range(prop, 0.0, 2.0); - RNA_def_property_ui_range(prop, 0.0, 2.0, 0.1, 3); + RNA_def_property_range(prop, 0.0, 1.0); + RNA_def_property_ui_range(prop, 0.0, 1.0, 0.1, 3); RNA_def_property_float_sdna(prop, NULL, "hsv[0]"); RNA_def_property_ui_text(prop, "Hue", "Color Hue"); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); |