[Bf-blender-cvs] [769818f7f44] master: GPencil: Reduce UI range for Simplify Adaptive factor

Antonio Vazquez noreply at git.blender.org
Thu Dec 3 17:42:22 CET 2020


Commit: 769818f7f44341511f17925f41535a06f2224558
Author: Antonio Vazquez
Date:   Thu Dec 3 17:42:12 2020 +0100
Branches: master
https://developer.blender.org/rB769818f7f44341511f17925f41535a06f2224558

GPencil: Reduce UI range for Simplify Adaptive factor

The old range was too big, so now the soft limit is between 0 and 5

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

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

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

diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c
index 19264aeebd7..e30ee2e9ee7 100644
--- a/source/blender/makesrna/intern/rna_gpencil_modifier.c
+++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c
@@ -781,7 +781,7 @@ static void rna_def_modifier_gpencilsimplify(BlenderRNA *brna)
   prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_FACTOR);
   RNA_def_property_float_sdna(prop, NULL, "factor");
   RNA_def_property_range(prop, 0, 100.0);
-  RNA_def_property_ui_range(prop, 0, 100.0, 1.0f, 3);
+  RNA_def_property_ui_range(prop, 0, 5.0f, 1.0f, 3);
   RNA_def_property_ui_text(prop, "Factor", "Factor of Simplify");
   RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");



More information about the Bf-blender-cvs mailing list