[Bf-blender-cvs] [83f285f56fa] master: Cleanup: reference near duplicate enum definitions

Campbell Barton noreply at git.blender.org
Sat Feb 20 05:38:44 CET 2021


Commit: 83f285f56fac5aa989ec26d2d529b1284c8c2e21
Author: Campbell Barton
Date:   Sat Feb 20 15:34:14 2021 +1100
Branches: master
https://developer.blender.org/rB83f285f56fac5aa989ec26d2d529b1284c8c2e21

Cleanup: reference near duplicate enum definitions

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

M	source/blender/editors/gpencil/gpencil_interpolate.c
M	source/blender/makesrna/intern/rna_curve.c

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

diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c
index 6a2eae934a2..1823a962926 100644
--- a/source/blender/editors/gpencil/gpencil_interpolate.c
+++ b/source/blender/editors/gpencil/gpencil_interpolate.c
@@ -1431,6 +1431,10 @@ void GPENCIL_OT_interpolate_sequence(wmOperatorType *ot)
       {0, NULL, 0, NULL, NULL},
   };
 
+  /**
+   * \note this is a near exact duplicate of #rna_enum_beztriple_interpolation_mode_items,
+   * Changes here will likely apply there too.
+   */
   static const EnumPropertyItem gpencil_interpolation_type_items[] = {
       /* interpolation */
       {0, "", 0, N_("Interpolation"), "Standard transitions between keyframes"},
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index a46026fd08f..50c18cf1dae 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -75,6 +75,10 @@ const EnumPropertyItem rna_enum_keyframe_handle_type_items[] = {
     {0, NULL, 0, NULL, NULL},
 };
 
+/**
+ * \note this is a near exact duplicate of `gpencil_interpolation_type_items`,
+ * Changes here will likely apply there too.
+ */
 const EnumPropertyItem rna_enum_beztriple_interpolation_mode_items[] = {
     /* interpolation */
     {0, "", 0, N_("Interpolation"), "Standard transitions between keyframes"},



More information about the Bf-blender-cvs mailing list