Fix T66494: Alt+ clicking (assign to all selected) does not work for NLA

strips

This uses the new "selected_nla_strips" context member in
UI_context_copy_to_selected_list().

bonus: this also makes the "Copy To Selected" button operator [in the
button context menu] work for anything NLA Strip related.

Maniphest Tasks: T66494

Differential Revision: https://developer.blender.org/D7281
This commit is contained in:
Philipp Oeser 2020-04-01 10:24:16 +02:00
parent f8c4f5e308
commit 60ff3a7daf
Notes: blender-bot 2023-02-14 11:42:40 +01:00
Referenced by issue #66494, NLA Alt+changing value works for selected object but not for selected strips
1 changed files with 3 additions and 0 deletions

View File

@ -807,6 +807,9 @@ bool UI_context_copy_to_selected_list(bContext *C,
else if (RNA_struct_is_a(ptr->type, &RNA_FCurve)) {
*r_lb = CTX_data_collection_get(C, "selected_editable_fcurves");
}
else if (RNA_struct_is_a(ptr->type, &RNA_NlaStrip)) {
*r_lb = CTX_data_collection_get(C, "selected_nla_strips");
}
else if (RNA_struct_is_a(ptr->type, &RNA_Constraint) &&
(path_from_bone = RNA_path_resolve_from_type_to_property(ptr, prop, &RNA_PoseBone)) !=
NULL) {