Blender Git Loki
Git Commits -> Revision 604e61d
Revision 604e61d by Julian Eisel (master) February 15, 2021, 18:39 (GMT) |
UI/Nodes: Adding node groups via drag & drop (e.g. from Asset Browser) Adds `NODE_OT_add_group` operator to add a node group from a given name, and uses that to register a node editor drop-box. When dropping a node-group asset, the ID will be appended. This is what we do for other ID assets too. Should the node group insertion fail (e.g. the group is not compatible with the current tree, as checked by the poll), the appended data-block is removed. Differential Revision: https://developer.blender.org/D10405 Reviewed by: Jacques Lucke |
Commit Details:
Full Hash: 604e61d81d6326e665de6ec81dca2619e2cd5dbc
Parent Commit: 4585253
Lines Changed: +133, -5
5 Modified Paths:
/source/blender/editors/space_node/node_add.c (+105, -0) (Diff)
/source/blender/editors/space_node/node_group.c (+5, -5) (Diff)
/source/blender/editors/space_node/node_intern.h (+2, -0) (Diff)
/source/blender/editors/space_node/node_ops.c (+1, -0) (Diff)
/source/blender/editors/space_node/space_node.c (+20, -0) (Diff)
/source/blender/editors/space_node/node_group.c (+5, -5) (Diff)
/source/blender/editors/space_node/node_intern.h (+2, -0) (Diff)
/source/blender/editors/space_node/node_ops.c (+1, -0) (Diff)
/source/blender/editors/space_node/space_node.c (+20, -0) (Diff)