diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-13 02:22:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-13 02:48:41 +0300 |
commit | bbadc3aecd72b617d9678fdfc1541fc38e7e8a33 (patch) | |
tree | 057654ab29cd8215d02ea9c69fc48d91bfbcd44a /source/blender/editors | |
parent | 274b0838c7cd0f73e866b36456f5a88d710a5776 (diff) |
UI: nodes support for multi-value-editing
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 7c4ee7b6649..d13078f6cf2 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -278,6 +278,14 @@ 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_Node)) { + *r_lb = CTX_data_collection_get(C, "selected_nodes"); + } + else if (RNA_struct_is_a(ptr->type, &RNA_NodeSocket)) { + if ((*r_path = RNA_path_resolve_from_type_to_property(ptr, prop, &RNA_Node)) != NULL) { + *r_lb = CTX_data_collection_get(C, "selected_nodes"); + } + } else if (ptr->id.data) { ID *id = ptr->id.data; |