[Bf-blender-cvs] [1c0cd504720] master: Curves: Add descriptions for normal mode RNA enum

Hans Goudey noreply at git.blender.org
Fri Nov 18 20:43:20 CET 2022


Commit: 1c0cd50472046c17a400d02b73675f34a3094901
Author: Hans Goudey
Date:   Thu Nov 17 16:19:12 2022 -0600
Branches: master
https://developer.blender.org/rB1c0cd50472046c17a400d02b73675f34a3094901

Curves: Add descriptions for normal mode RNA enum

This is only exposed in the "Set Normal Node" now but will be used in
more places in the future.

===================================================================

M	source/blender/makesrna/intern/rna_curves.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_curves.c b/source/blender/makesrna/intern/rna_curves.c
index a01a2bcb8cd..bd4575a1740 100644
--- a/source/blender/makesrna/intern/rna_curves.c
+++ b/source/blender/makesrna/intern/rna_curves.c
@@ -27,8 +27,17 @@ const EnumPropertyItem rna_enum_curves_types[] = {
 };
 
 const EnumPropertyItem rna_enum_curve_normal_modes[] = {
-    {NORMAL_MODE_MINIMUM_TWIST, "MINIMUM_TWIST", ICON_NONE, "Minimum Twist", ""},
-    {NORMAL_MODE_Z_UP, "Z_UP", ICON_NONE, "Z Up", ""},
+    {NORMAL_MODE_MINIMUM_TWIST,
+     "MINIMUM_TWIST",
+     ICON_NONE,
+     "Minimum Twist",
+     "Calculate normals with the smallest twist around the curve tangent across the whole curve"},
+    {NORMAL_MODE_Z_UP,
+     "Z_UP",
+     ICON_NONE,
+     "Z Up",
+     "Calculate normals perpendicular to the Z axis and the curve tangent. If a series of points "
+     "is vertical, the X axis is used"},
     {0, NULL, 0, NULL, NULL},
 };



More information about the Bf-blender-cvs mailing list