Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_group.c
| Show First 20 Lines • Show All 433 Lines • ▼ Show 20 Lines | for (node = ngroup->nodes.first; node; node = node_next) { | ||||
| /* ignore interface nodes */ | /* ignore interface nodes */ | ||||
| if (ELEM(node->type, NODE_GROUP_INPUT, NODE_GROUP_OUTPUT)) { | if (ELEM(node->type, NODE_GROUP_INPUT, NODE_GROUP_OUTPUT)) { | ||||
| nodeSetSelected(node, false); | nodeSetSelected(node, false); | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (make_copy) { | if (make_copy) { | ||||
| /* make a copy */ | /* make a copy */ | ||||
| newnode = BKE_node_copy_ex(ngroup, node, LIB_ID_COPY_DEFAULT); | newnode = BKE_node_copy_store_new_pointers(ngroup, node, LIB_ID_COPY_DEFAULT); | ||||
| } | } | ||||
| else { | else { | ||||
| /* use the existing node */ | /* use the existing node */ | ||||
| newnode = node; | newnode = node; | ||||
| } | } | ||||
| /* keep track of this node's RNA "base" path (the part of the path identifying the node) | /* keep track of this node's RNA "base" path (the part of the path identifying the node) | ||||
| * if the old nodetree has animation data which potentially covers this node | * if the old nodetree has animation data which potentially covers this node | ||||
| ▲ Show 20 Lines • Show All 628 Lines • Show Last 20 Lines | |||||