Fix T45363: Bone attrs ignore editing all selected

This commit is contained in:
Campbell Barton 2015-07-21 15:08:06 +10:00
parent 39cf1de33d
commit a48db0894a
Notes: blender-bot 2023-10-18 15:23:11 +02:00
Referenced by issue #45363, Multichange attribute is not working
1 changed files with 14 additions and 0 deletions

View File

@ -276,6 +276,20 @@ bool UI_context_copy_to_selected_list(
else if (RNA_struct_is_a(ptr->type, &RNA_PoseBone)) {
*r_lb = CTX_data_collection_get(C, "selected_pose_bones");
}
else if (RNA_struct_is_a(ptr->type, &RNA_Bone)) {
ListBase lb;
lb = CTX_data_collection_get(C, "selected_pose_bones");
if (!BLI_listbase_is_empty(&lb)) {
CollectionPointerLink *link;
for (link = lb.first; link; link = link->next) {
bPoseChannel *pchan = link->ptr.data;
RNA_pointer_create(link->ptr.id.data, &RNA_Bone, pchan->bone, &link->ptr);
}
}
*r_lb = lb;
}
else if (RNA_struct_is_a(ptr->type, &RNA_Sequence)) {
*r_lb = CTX_data_collection_get(C, "selected_editable_sequences");
}