24 b.add_output<
decl::Color>(
N_(
"Image")).structure_type(StructureType::Dynamic);
26 const bNode *node =
b.node_or_null();
27 if (node ==
nullptr) {
33 if (scene !=
nullptr) {
40 .default_value({0.0f, 0.0f, 0.0f, 1.0f})
41 .structure_type(StructureType::Dynamic);
52 node->
id = (
ID *)scene;
67 if (
context().get_view_name().is_empty()) {
93 ntype.
ui_description =
"Combine the views (left and right) into a single stereo 3D output";
96 ntype.
declare = file_ns::node_declare;
Scene * CTX_data_scene(const bContext *C)
#define NODE_CLASS_CONVERTER
#define CMP_NODE_SWITCH_VIEW
#define LISTBASE_FOREACH(type, var, list)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
const DNode & node() const
NodeOperation(Context &context, DNode node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
NodeOperation(Context &context, DNode node)
void node_register_type(bNodeType &ntype)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void node_declare(NodeDeclarationBuilder &b)
static void init_switch_view(const bContext *C, PointerRNA *ptr)
static void register_node_type_cmp_switch_view()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeDeclareFunction declare
void(* initfunc_api)(const bContext *C, PointerRNA *ptr)