Support Copy To Selected and Alt-Click for F-Curves in the curve editor.
This affects the curve display color setting, but is really intended for future per-curve options. The id_data reference in the created rna pointers refers to the object even if the curve is actually owned by its action, which is somewhat inconsistent, but the same problem can be found in existing code. Fixing it requires changes in animdata filter API.
This commit is contained in:
@@ -360,6 +360,9 @@ bool UI_context_copy_to_selected_list(
|
||||
else if (RNA_struct_is_a(ptr->type, &RNA_Sequence)) {
|
||||
*r_lb = CTX_data_collection_get(C, "selected_editable_sequences");
|
||||
}
|
||||
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_Node) ||
|
||||
RNA_struct_is_a(ptr->type, &RNA_NodeSocket))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user