[Bf-blender-cvs] [376c8dd] master: Fix T48193: Incorrect keyframe_insert docs

Campbell Barton noreply at git.blender.org
Tue Apr 19 10:24:58 CEST 2016


Commit: 376c8dd95ee2412d91292fe04ee3227d955a6e62
Author: Campbell Barton
Date:   Tue Apr 19 18:25:56 2016 +1000
Branches: master
https://developer.blender.org/rB376c8dd95ee2412d91292fe04ee3227d955a6e62

Fix T48193: Incorrect keyframe_insert docs

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

M	source/blender/python/intern/bpy_rna_anim.c

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

diff --git a/source/blender/python/intern/bpy_rna_anim.c b/source/blender/python/intern/bpy_rna_anim.c
index e74a518..2ec73c3 100644
--- a/source/blender/python/intern/bpy_rna_anim.c
+++ b/source/blender/python/intern/bpy_rna_anim.c
@@ -188,18 +188,19 @@ char pyrna_struct_keyframe_insert_doc[] =
 "\n"
 "   :arg data_path: path to the property to key, analogous to the fcurve's data path.\n"
 "   :type data_path: string\n"
-"   :arg index: array index of the property to key. Defaults to -1 which will key all indices or a single channel "
-               "if the property is not an array.\n"
+"   :arg index: array index of the property to key.\n"
+"      Defaults to -1 which will key all indices or a single channel if the property is not an array.\n"
 "   :type index: int\n"
 "   :arg frame: The frame on which the keyframe is inserted, defaulting to the current frame.\n"
 "   :type frame: float\n"
 "   :arg group: The name of the group the F-Curve should be added to if it doesn't exist yet.\n"
 "   :type group: str\n"
-"   :arg options: Some optional flags:\n"
-"                     'NEEDED': Only insert keyframes where they're needed in the relevant F-Curves.\n"
-"                     'VISUAL': Insert keyframes based on 'visual transforms'.\n"
-"                     'XYZ_TO_RGB': Color for newly added transformation F-Curves (Location, Rotation, Scale) "
-                                   "and also Color is based on the transform axis.\n"
+"   :arg options: Optional flags:\n"
+"\n"
+"      - ``INSERTKEY_NEEDED`` Only insert keyframes where they're needed in the relevant F-Curves.\n"
+"      - ``INSERTKEY_VISUAL`` Insert keyframes based on 'visual transforms'.\n"
+"      - ``INSERTKEY_XYZ_TO_RGB`` Color for newly added transformation F-Curves (Location, Rotation, Scale)\n"
+"         and also Color is based on the transform axis.\n"
 "   :type flag: set\n"
 "   :return: Success of keyframe insertion.\n"
 "   :rtype: boolean\n"




More information about the Bf-blender-cvs mailing list