[Bf-blender-cvs] [60ff3a7daff] master: Fix T66494: Alt+ clicking (assign to all selected) does not work for NLA strips

Philipp Oeser noreply at git.blender.org
Wed Apr 1 10:33:12 CEST 2020


Commit: 60ff3a7daff75e631993e6e5d284746442e824f3
Author: Philipp Oeser
Date:   Wed Apr 1 10:24:16 2020 +0200
Branches: master
https://developer.blender.org/rB60ff3a7daff75e631993e6e5d284746442e824f3

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

===================================================================

M	source/blender/editors/interface/interface_ops.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list