diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 03:11:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 03:11:00 +0400 |
commit | 65b13c80898aee7679286f441735db87c2e62afa (patch) | |
tree | a178659d59a3b3b89be7c1e74cba2a12ebf5694e /source | |
parent | 9decca10e0e416a038f6e06566e9d3fd4705bf4f (diff) |
fix [#26757] Python console: help() doesn't work anymore
also quiet some warnings & add docstrings to bpy module which was shaowing the GPL header in its help() message.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_constraint.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/makesrna/intern/rna_constraint.c b/source/blender/makesrna/intern/rna_constraint.c index 6940b2a3543..d8f0abfd7e2 100644 --- a/source/blender/makesrna/intern/rna_constraint.c +++ b/source/blender/makesrna/intern/rna_constraint.c @@ -82,25 +82,13 @@ static EnumPropertyItem space_pchan_items[] = { {1, "LOCAL", 0, "Local Space", ""}, {0, NULL, 0, NULL, NULL}}; +#ifdef RNA_RUNTIME + static EnumPropertyItem space_object_items[] = { {0, "WORLD", 0, "World Space", ""}, {1, "LOCAL", 0, "Local Space", ""}, {0, NULL, 0, NULL, NULL}}; -static EnumPropertyItem constraint_ik_type_items[] ={ - {CONSTRAINT_IK_COPYPOSE, "COPY_POSE", 0, "Copy Pose", ""}, - {CONSTRAINT_IK_DISTANCE, "DISTANCE", 0, "Distance", ""}, - {0, NULL, 0, NULL, NULL}, -}; - -static EnumPropertyItem constraint_ik_axisref_items[] ={ - {0, "BONE", 0, "Bone", ""}, - {CONSTRAINT_IK_TARGETAXIS, "TARGET", 0, "Target", ""}, - {0, NULL, 0, NULL, NULL}, -}; - -#ifdef RNA_RUNTIME - #include "BKE_animsys.h" #include "BKE_action.h" #include "BKE_constraint.h" @@ -466,6 +454,18 @@ static void rna_def_constraint_kinematic(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; + static EnumPropertyItem constraint_ik_axisref_items[] ={ + {0, "BONE", 0, "Bone", ""}, + {CONSTRAINT_IK_TARGETAXIS, "TARGET", 0, "Target", ""}, + {0, NULL, 0, NULL, NULL}, + }; + + static EnumPropertyItem constraint_ik_type_items[] ={ + {CONSTRAINT_IK_COPYPOSE, "COPY_POSE", 0, "Copy Pose", ""}, + {CONSTRAINT_IK_DISTANCE, "DISTANCE", 0, "Distance", ""}, + {0, NULL, 0, NULL, NULL}, + }; + srna= RNA_def_struct(brna, "KinematicConstraint", "Constraint"); RNA_def_struct_ui_text(srna, "Kinematic Constraint", "Inverse Kinematics"); RNA_def_struct_sdna_from(srna, "bKinematicConstraint", "data"); |