From 60ff3a7daff75e631993e6e5d284746442e824f3 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 1 Apr 2020 10:24:16 +0200 Subject: 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 --- source/blender/editors/interface/interface_ops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors') diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 519ba4cbbdf..b418cb4a1ac 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -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) { -- cgit v1.2.3