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:
authorRedMser <RedMser>2022-10-06 05:11:29 +0300
committerCampbell Barton <campbell@blender.org>2022-10-06 05:17:21 +0300
commit6fac4bb8b0db68e5f0807708f59ecf128f286b85 (patch)
treee95e158f64d7c42c2e4d23cefee972db12ad7b38
parent63ed9550e94c9d054c632802d68000e35c6eb76a (diff)
Curve: increase max of order U/V
Uses soft and hard max of the resolution properties. Range for order U/V was 2-6, but after testing higher max values with NURB splines and surfaces with many control points, no problems were found. Reviewed By: campbellbarton Ref D13918
-rw-r--r--source/blender/makesrna/intern/rna_curve.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index 3a90d631c63..126300f0425 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -1947,22 +1947,23 @@ static void rna_def_curve_nurb(BlenderRNA *brna)
prop = RNA_def_property(srna, "order_u", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "orderu");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
- RNA_def_property_range(prop, 2, 6);
- RNA_def_property_ui_text(
- prop,
- "Order U",
- "NURBS order in the U direction (for splines and surfaces, higher values "
- "let points influence a greater area)");
+ RNA_def_property_range(prop, 2, 64);
+ RNA_def_property_ui_range(prop, 2, 6, 1, -1);
+ RNA_def_property_ui_text(prop,
+ "Order U",
+ "NURBS order in the U direction. Higher values make each point "
+ "influence a greater area, but have worse performance");
RNA_def_property_update(prop, 0, "rna_Nurb_update_knot_u");
prop = RNA_def_property(srna, "order_v", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "orderv");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
- RNA_def_property_range(prop, 2, 6);
+ RNA_def_property_range(prop, 2, 64);
+ RNA_def_property_ui_range(prop, 2, 6, 1, -1);
RNA_def_property_ui_text(prop,
"Order V",
- "NURBS order in the V direction (for surfaces only, higher values "
- "let points influence a greater area)");
+ "NURBS order in the V direction. Higher values make each point "
+ "influence a greater area, but have worse performance");
RNA_def_property_update(prop, 0, "rna_Nurb_update_knot_v");
prop = RNA_def_property(srna, "resolution_u", PROP_INT, PROP_NONE);