Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_output.c
| Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node) | ||||
| unique_name(dest_node); | unique_name(dest_node); | ||||
| assign_index(dest_node); | assign_index(dest_node); | ||||
| } | } | ||||
| void register_node_type_tex_output(void) | void register_node_type_tex_output(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_OUTPUT, "Output", NODE_CLASS_OUTPUT, NODE_PREVIEW); | tex_node_type_base(&ntype, TEX_NODE_OUTPUT, "Output", NODE_CLASS_OUTPUT); | ||||
| node_type_socket_templates(&ntype, inputs, NULL); | node_type_socket_templates(&ntype, inputs, NULL); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | ||||
| node_type_init(&ntype, init); | node_type_init(&ntype, init); | ||||
| node_type_storage(&ntype, "TexNodeOutput", node_free_standard_storage, copy); | node_type_storage(&ntype, "TexNodeOutput", node_free_standard_storage, copy); | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| ntype.flag |= NODE_PREVIEW; | |||||
| ntype.no_muting = true; | ntype.no_muting = true; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||