Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_image.c
| Show First 20 Lines • Show All 426 Lines • ▼ Show 20 Lines | for (sock = node->outputs.first; sock; sock = sock->next) { | ||||
| MEM_freeN(sock->storage); | MEM_freeN(sock->storage); | ||||
| } | } | ||||
| MEM_freeN(node->storage); | MEM_freeN(node->storage); | ||||
| } | } | ||||
| static void node_composit_copy_image(bNodeTree *UNUSED(dest_ntree), | static void node_composit_copy_image(bNodeTree *UNUSED(dest_ntree), | ||||
| bNode *dest_node, | bNode *dest_node, | ||||
| bNode *src_node) | const bNode *src_node) | ||||
| { | { | ||||
| bNodeSocket *sock; | bNodeSocket *sock; | ||||
| dest_node->storage = MEM_dupallocN(src_node->storage); | dest_node->storage = MEM_dupallocN(src_node->storage); | ||||
| /* copy extra socket info */ | /* copy extra socket info */ | ||||
| for (sock = src_node->outputs.first; sock; sock = sock->next) { | for (sock = src_node->outputs.first; sock; sock = sock->next) { | ||||
| sock->new_sock->storage = MEM_dupallocN(sock->storage); | sock->new_sock->storage = MEM_dupallocN(sock->storage); | ||||
| ▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | for (sock = node->outputs.first; sock; sock = sock->next) { | ||||
| if (sock->storage) { | if (sock->storage) { | ||||
| MEM_freeN(sock->storage); | MEM_freeN(sock->storage); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void node_composit_copy_rlayers(bNodeTree *UNUSED(dest_ntree), | static void node_composit_copy_rlayers(bNodeTree *UNUSED(dest_ntree), | ||||
| bNode *UNUSED(dest_node), | bNode *UNUSED(dest_node), | ||||
| bNode *src_node) | const bNode *src_node) | ||||
| { | { | ||||
| bNodeSocket *sock; | bNodeSocket *sock; | ||||
| /* copy extra socket info */ | /* copy extra socket info */ | ||||
| for (sock = src_node->outputs.first; sock; sock = sock->next) { | for (sock = src_node->outputs.first; sock; sock = sock->next) { | ||||
| if (sock->storage) { | if (sock->storage) { | ||||
| sock->new_sock->storage = MEM_dupallocN(sock->storage); | sock->new_sock->storage = MEM_dupallocN(sock->storage); | ||||
| } | } | ||||
| Show All 25 Lines | |||||