diff options
author | Henrik Dick <weasel> | 2020-03-29 12:23:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-29 12:25:14 +0300 |
commit | fc37318fe7361bc4d3632213ddb567b790305710 (patch) | |
tree | eb6bac76cd7ca567529bb3e47a68cb70201f964f /source/blender/makesrna | |
parent | e8dd6128b58b138b0163e6376a6e8a54cc6e5ab1 (diff) |
Screw Modifier: support 1-2 steps
The Screw Modifier had a lower limit for the steps value, which not only
was inconsistent between render and viewport steps, but also was capped
to 2 in UI and also in the code internally.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 45c4ad75995..455fb1c50c9 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -4538,14 +4538,14 @@ static void rna_def_modifier_screw(BlenderRNA *brna) RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); prop = RNA_def_property(srna, "steps", PROP_INT, PROP_UNSIGNED); - RNA_def_property_range(prop, 2, 10000); - RNA_def_property_ui_range(prop, 3, 512, 1, -1); + RNA_def_property_range(prop, 1, 10000); + RNA_def_property_ui_range(prop, 1, 512, 1, -1); RNA_def_property_ui_text(prop, "Steps", "Number of steps in the revolution"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); prop = RNA_def_property(srna, "render_steps", PROP_INT, PROP_UNSIGNED); - RNA_def_property_range(prop, 2, 10000); - RNA_def_property_ui_range(prop, 2, 512, 1, -1); + RNA_def_property_range(prop, 1, 10000); + RNA_def_property_ui_range(prop, 1, 512, 1, -1); RNA_def_property_ui_text(prop, "Render Steps", "Number of steps in the revolution"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); |