[Bf-blender-cvs] [3956c4738f6] master: GPencil: Change range for Length value in Simplify modifier

Antonio Vazquez noreply at git.blender.org
Tue Jan 24 16:44:41 CET 2023


Commit: 3956c4738f6071f3db6f882de55afa0e08dd93c6
Author: Antonio Vazquez
Date:   Tue Jan 24 16:44:26 2023 +0100
Branches: master
https://developer.blender.org/rB3956c4738f6071f3db6f882de55afa0e08dd93c6

GPencil: Change range for Length value in Simplify modifier

In some cases a smaller value is required. Anyways, the UI value
soft limit is 0.005

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

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 58ecec54013..8c8a9dc4980 100644
--- a/source/blender/makesrna/intern/rna_gpencil_modifier.c
+++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c
@@ -1425,8 +1425,8 @@ static void rna_def_modifier_gpencilsimplify(BlenderRNA *brna)
   /* Sample */
   prop = RNA_def_property(srna, "length", PROP_FLOAT, PROP_DISTANCE);
   RNA_def_property_float_sdna(prop, NULL, "length");
-  RNA_def_property_range(prop, 0.005, FLT_MAX);
-  RNA_def_property_ui_range(prop, 0, 1.0, 0.05, 3);
+  RNA_def_property_range(prop, 0, FLT_MAX);
+  RNA_def_property_ui_range(prop, 0.005, 1.0, 0.05, 3);
   RNA_def_property_ui_text(prop, "Length", "Length of each segment");
   RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");



More information about the Bf-blender-cvs mailing list