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
This commit is contained in:
parent
9c3adb789a
commit
66010b6deb
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue