Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_outputFile.cc
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2006 Blender Foundation. | * The Original Code is Copyright (C) 2006 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup cmpnodes | * \ingroup cmpnodes | ||||
| */ | */ | ||||
| #include <cstring> | |||||
| #include "BLI_string_utf8.h" | |||||
| #include "BLI_string_utils.h" | #include "BLI_string_utils.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include <cstring> | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "node_composite_util.hh" | #include "node_composite_util.hh" | ||||
| #include "intern/openexr/openexr_multi.h" | #include "intern/openexr/openexr_multi.h" | ||||
| ▲ Show 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | static void update_output_file(bNodeTree *ntree, bNode *node) | ||||
| LISTBASE_FOREACH (bNodeSocket *, sock, &node->inputs) { | LISTBASE_FOREACH (bNodeSocket *, sock, &node->inputs) { | ||||
| if (sock->link) { | if (sock->link) { | ||||
| RNA_pointer_create((ID *)ntree, &RNA_NodeSocket, sock, &ptr); | RNA_pointer_create((ID *)ntree, &RNA_NodeSocket, sock, &ptr); | ||||
| RNA_enum_set(&ptr, "type", sock->link->fromsock->type); | RNA_enum_set(&ptr, "type", sock->link->fromsock->type); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void register_node_type_cmp_output_file(void) | void register_node_type_cmp_output_file() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| cmp_node_type_base(&ntype, CMP_NODE_OUTPUT_FILE, "File Output", NODE_CLASS_OUTPUT, NODE_PREVIEW); | cmp_node_type_base(&ntype, CMP_NODE_OUTPUT_FILE, "File Output", NODE_CLASS_OUTPUT, NODE_PREVIEW); | ||||
| node_type_socket_templates(&ntype, nullptr, nullptr); | node_type_socket_templates(&ntype, nullptr, nullptr); | ||||
| ntype.initfunc_api = init_output_file; | ntype.initfunc_api = init_output_file; | ||||
| node_type_storage(&ntype, "NodeImageMultiFile", free_output_file, copy_output_file); | node_type_storage(&ntype, "NodeImageMultiFile", free_output_file, copy_output_file); | ||||
| node_type_update(&ntype, update_output_file); | node_type_update(&ntype, update_output_file); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||