From 6f7e632a6ff432c2b248588ae12263957ea43239 Mon Sep 17 00:00:00 2001 From: YimingWu Date: Thu, 18 Mar 2021 19:29:17 +0800 Subject: Cleanup, LineArt: Sample -> Resample Clear up what sample length does by renaming the option and variables. --- source/blender/makesrna/intern/rna_gpencil_modifier.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '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 4efc8c4cca3..f6b52f80128 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -2531,9 +2531,11 @@ static void rna_def_modifier_gpencillineart(BlenderRNA *brna) RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); - prop = RNA_def_property(srna, "pre_sample_length", PROP_FLOAT, PROP_NONE); - RNA_def_property_ui_text( - prop, "Sample Length", "Resolution to sample the generated strokes with"); + prop = RNA_def_property(srna, "resample_length", PROP_FLOAT, PROP_DISTANCE); + RNA_def_property_ui_text(prop, + "Resample Length", + "Resample the strokes so that the stroke points have the specified " + "length between them. Zero length disables the resampling"); RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.01f, 2); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); -- cgit v1.2.3