Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-03-18 14:29:17 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-03-18 15:20:44 +0300
commit6f7e632a6ff432c2b248588ae12263957ea43239 (patch)
treedef712d7501591ea9dc9f7290e7449eb669d460f /source/blender/makesrna/intern/rna_gpencil_modifier.c
parent3f0cd3fcc1f796adcbba6ad2f307a0d5815f6afb (diff)
Cleanup, LineArt: Sample -> Resample
Clear up what sample length does by renaming the option and variables.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil_modifier.c')
-rw-r--r--source/blender/makesrna/intern/rna_gpencil_modifier.c8
1 files changed, 5 insertions, 3 deletions
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");