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:
authorPratik Borhade <PratikPB2123>2022-03-30 15:51:20 +0300
committerHoward Trickey <howard.trickey@gmail.com>2022-03-30 15:51:20 +0300
commit66010b6deb6b7800443d5d9ee29074ff3b2fd994 (patch)
tree221777482c7ec4e7fc0e1f54298e557a42e308c6
parent9c3adb789a4f372dfe9582a2f69e2ad75637cb1e (diff)
Add soft limit for Bevel segments in modifier.
The recent change to allow a max segments of 1000 in the modifier causes a lag when dragging or wheeling in the segments box. This change makes the soft limit back to 100, but you can still type numbers up to 1000 in the box. Reviewed By: Howard Trickey Differential Revision: https://developer.blender.org/D14477
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 429fae2fab0..922e0204299 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -4082,6 +4082,7 @@ static void rna_def_modifier_bevel(BlenderRNA *brna)
prop = RNA_def_property(srna, "segments", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "res");
RNA_def_property_range(prop, 1, 1000);
+ RNA_def_property_ui_range(prop, 1, 100, 1, -1);
RNA_def_property_ui_text(prop, "Segments", "Number of segments for round edges/verts");
RNA_def_property_update(prop, 0, "rna_BevelModifier_update_segments");