Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_script.c
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | static void node_copy_script(bNodeTree *UNUSED(dest_ntree), | ||||
| dest_node->storage = dest_nss; | dest_node->storage = dest_nss; | ||||
| } | } | ||||
| void register_node_type_sh_script(void) | void register_node_type_sh_script(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_SCRIPT, "Script", NODE_CLASS_SCRIPT, 0); | sh_node_type_base(&ntype, SH_NODE_SCRIPT, "Script", NODE_CLASS_SCRIPT); | ||||
| node_type_init(&ntype, init); | node_type_init(&ntype, init); | ||||
| node_type_storage(&ntype, "NodeShaderScript", node_free_script, node_copy_script); | node_type_storage(&ntype, "NodeShaderScript", node_free_script, node_copy_script); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||