diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-03-29 08:34:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-03-29 08:34:20 +0400 |
commit | b450313b8da2b9844a83f2006ebb50d328c367e9 (patch) | |
tree | 87e26739de384b9dcc0e45000885334a15650d25 /source/blender/editors/armature/poseobject.c | |
parent | 931527e648acfbc2c7b71b59ce661dad9a4c1038 (diff) |
- python api was returning incorrect int values from rna because it was using PyLong_FromSize_t rather than PyLong_FromSsize_t, this messed up the default values in documentation.
- renamed POSE_OT_select_hierarchy "add_to_sel" property to "extend"
- some property names were wrong (giving errors in the console at startup)
Diffstat (limited to 'source/blender/editors/armature/poseobject.c')
-rw-r--r-- | source/blender/editors/armature/poseobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/poseobject.c b/source/blender/editors/armature/poseobject.c index b951829d9d1..ae82c063435 100644 --- a/source/blender/editors/armature/poseobject.c +++ b/source/blender/editors/armature/poseobject.c @@ -452,7 +452,7 @@ static int pose_select_hierarchy_exec(bContext *C, wmOperator *op) bPoseChannel *pchan; Bone *curbone, *pabone, *chbone; int direction = RNA_enum_get(op->ptr, "direction"); - int add_to_sel = RNA_boolean_get(op->ptr, "add_to_sel"); + int add_to_sel = RNA_boolean_get(op->ptr, "extend"); for(pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) { curbone= pchan->bone; @@ -519,7 +519,7 @@ void POSE_OT_select_hierarchy(wmOperatorType *ot) /* props */ RNA_def_enum(ot->srna, "direction", direction_items, BONE_SELECT_PARENT, "Direction", ""); - RNA_def_boolean(ot->srna, "add_to_sel", 0, "Add to Selection", ""); + RNA_def_boolean(ot->srna, "extend", 0, "Add to Selection", ""); } |