Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_switchview.cc
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (SceneRenderView *, srv, &rd->views) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* make sure there is always one socket */ | /* make sure there is always one socket */ | ||||
| cmp_node_switch_view_sanitycheck(ntree, node); | cmp_node_switch_view_sanitycheck(ntree, node); | ||||
| } | } | ||||
| void register_node_type_cmp_switch_view(void) | void register_node_type_cmp_switch_view() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| cmp_node_type_base(&ntype, CMP_NODE_SWITCH_VIEW, "Switch View", NODE_CLASS_CONVERTER, 0); | cmp_node_type_base(&ntype, CMP_NODE_SWITCH_VIEW, "Switch View", NODE_CLASS_CONVERTER, 0); | ||||
| node_type_socket_templates(&ntype, nullptr, cmp_node_switch_view_out); | node_type_socket_templates(&ntype, nullptr, cmp_node_switch_view_out); | ||||
| ntype.initfunc_api = init_switch_view; | ntype.initfunc_api = init_switch_view; | ||||
| node_type_update(&ntype, cmp_node_switch_view_update); | node_type_update(&ntype, cmp_node_switch_view_update); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||