diff options
author | Henrik Dick <hen-di@web.de> | 2022-04-07 18:41:49 +0300 |
---|---|---|
committer | Henrik Dick <hen-di@web.de> | 2022-04-07 18:41:49 +0300 |
commit | f8c21937d2ba1140533c5e6f70426099f9680609 (patch) | |
tree | 4133275343a78d4ac0659b586bb7fa388e3ef2a0 /source/blender/makesrna/intern/rna_gpencil_modifier.c | |
parent | 1a09024eacbdfa52b3ec669f2bdea313a06b82db (diff) |
GPencil: Add skip option to envelope modifier
This patch adds an option to only use every n-th segment of the
envelope result. This can be used to reduce the complexity of the
result.
Differential Revision: http://developer.blender.org/D14503
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil_modifier.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index b09d8a4738d..04a9a6b169e 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -4126,6 +4126,13 @@ static void rna_def_modifier_gpencilenvelope(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Strength", "Multiplier for the strength of the new strokes"); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); + prop = RNA_def_property(srna, "skip", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "skip"); + RNA_def_property_range(prop, 0, INT_MAX); + RNA_def_property_ui_text( + prop, "Skip Segments", "The number of generated segments to skip to reduce complexity"); + RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); + prop = RNA_def_property(srna, "invert_layers", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_ENVELOPE_INVERT_LAYER); RNA_def_property_ui_text(prop, "Inverse Layers", "Inverse filter"); |