[Bf-blender-cvs] [ff6d7e90726] master: Cleanup: spelling, expand on FCurve.rna_path docstring

Campbell Barton noreply at git.blender.org
Fri Dec 11 05:33:00 CET 2020


Commit: ff6d7e907269c3e090d4234df6eb7e812c809050
Author: Campbell Barton
Date:   Fri Dec 11 14:51:43 2020 +1100
Branches: master
https://developer.blender.org/rBff6d7e907269c3e090d4234df6eb7e812c809050

Cleanup: spelling, expand on FCurve.rna_path docstring

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

M	source/blender/editors/sculpt_paint/sculpt_intern.h
M	source/blender/makesdna/DNA_anim_types.h
M	source/blender/modifiers/intern/MOD_screw.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h
index 3b48207f461..e0d413bc75f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_intern.h
+++ b/source/blender/editors/sculpt_paint/sculpt_intern.h
@@ -452,7 +452,7 @@ BLI_INLINE bool SCULPT_tool_needs_all_pbvh_nodes(const Brush *brush)
   if (brush->sculpt_tool == SCULPT_TOOL_BOUNDARY) {
     /* Boundary needs all nodes because it is not possible to know where the boundary
      * deformation is going to be propagated before calculating it. */
-    /* TODO: after calculating the boudnary info in the first iteration, it should be
+    /* TODO: after calculating the boundary info in the first iteration, it should be
      * possible to get the nodes that have vertices included in any boundary deformation
      * and cache them. */
     return true;
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h
index 17d41985f80..bfc72fdd45c 100644
--- a/source/blender/makesdna/DNA_anim_types.h
+++ b/source/blender/makesdna/DNA_anim_types.h
@@ -612,9 +612,13 @@ typedef struct FCurve {
   char _pad[3];
 
   /* RNA - data link */
-  /** If applicable, the index of the RNA-array item to get. */
+  /** When the RNA property from `rna_path` is an array, use this to access the array index. */
   int array_index;
-  /** RNA-path to resolve data-access. */
+  /**
+   * RNA-path to resolve data-access, see: #RNA_path_resolve_property.
+   *
+   * \note String look-ups for collection and custom-properties are escaped using #BLI_str_escape.
+   */
   char *rna_path;
 
   /* curve coloring (for editor) */
diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c
index 94d5c402abe..ba370b401f3 100644
--- a/source/blender/modifiers/intern/MOD_screw.c
+++ b/source/blender/modifiers/intern/MOD_screw.c
@@ -701,8 +701,8 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
 
             /*printf("flip direction %i\n", ed_loop_flip);*/
 
-            /* switch the flip option if set
-             * note: flip is now done at face level so copying vgroup slizes is easier */
+            /* Switch the flip option if set
+             * NOTE: flip is now done at face level so copying group slices is easier. */
 #if 0
             if (do_flip) {
               ed_loop_flip = !ed_loop_flip;



More information about the Bf-blender-cvs mailing list