From 1f16e68af9b1be88232eef44b2d3206884d12449 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 Dec 2010 04:40:20 +0000 Subject: [PATCH] bug [#25081] changes to pose bone selection state via python have no effect. Remove pose channel select, this is for internal use on read/write only. Its possible to have a convenience attribute but rather not fake bone data being in the pose channel. just access pose_bone.bone.select --- source/blender/makesdna/DNA_action_types.h | 2 +- source/blender/makesrna/intern/rna_pose.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h index bfc413d6cc2..ee4c90e0354 100644 --- a/source/blender/makesdna/DNA_action_types.h +++ b/source/blender/makesdna/DNA_action_types.h @@ -188,7 +188,7 @@ typedef struct bPoseChannel { short flag; /* dynamic, for detecting transform changes */ short constflag; /* for quick detecting which constraints affect this channel */ short ikflag; /* settings for IK bones */ - short selectflag; /* copy of bone flag, so you can work with library armatures */ + short selectflag; /* copy of bone flag, so you can work with library armatures, not for runtime use */ short protectflag; /* protect channels from being transformed */ short agrp_index; /* index of action-group this bone belongs to (0 = default/no group) */ diff --git a/source/blender/makesrna/intern/rna_pose.c b/source/blender/makesrna/intern/rna_pose.c index be14556cb41..3b0d3e1eb1e 100644 --- a/source/blender/makesrna/intern/rna_pose.c +++ b/source/blender/makesrna/intern/rna_pose.c @@ -708,10 +708,6 @@ static void rna_def_pose_channel(BlenderRNA *brna) RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); RNA_def_struct_name_property(srna, prop); - prop= RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "selectflag", BONE_SELECTED); - RNA_def_property_ui_text(prop, "Select", ""); - /* Baked Bone Path cache data */ rna_def_motionpath_common(srna);