21 {
SOCK_RGBA,
N_(
"Image"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
53 if (
scene ==
nullptr) {
87 if (sock ==
nullptr) {
134 "NODE_OT_switch_view_update",
struct Scene * CTX_data_scene(const bContext *C)
void id_us_plus(struct ID *id)
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_update(struct bNodeType *ntype, void(*updatefunc)(struct bNodeTree *ntree, struct bNode *node))
#define NODE_CLASS_CONVERTER
void nodeRemoveAllSockets(struct bNodeTree *ntree, struct bNode *node)
struct bNodeSocket * nodeAddStaticSocket(struct bNodeTree *ntree, struct bNode *node, eNodeSocketInOut in_out, int type, int subtype, const char *identifier, const char *name)
#define CMP_NODE_SWITCH_VIEW
void nodeRemoveSocket(struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *sock)
void nodeRegisterType(struct bNodeType *ntype)
BLI_INLINE bool BLI_listbase_is_empty(const struct ListBase *lb)
#define LISTBASE_FOREACH(type, var, list)
void * BLI_findstring(const struct ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define NODE_UPDATE_OPERATOR
void uiItemFullO(uiLayout *layout, const char *opname, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, struct PointerRNA *r_opptr)
static bNodeSocketTemplate cmp_node_switch_view_out[]
static void node_composit_buts_switch_view_ex(uiLayout *layout, bContext *UNUSED(C), PointerRNA *UNUSED(ptr))
static void cmp_node_switch_view_update(bNodeTree *ntree, bNode *node)
static bNodeSocket * ntreeCompositSwitchViewAddSocket(bNodeTree *ntree, bNode *node, const char *name)
static void cmp_node_switch_view_sanitycheck(bNodeTree *ntree, bNode *node)
static void init_switch_view(const bContext *C, PointerRNA *ptr)
void register_node_type_cmp_switch_view()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
Compact definition of a node socket.
struct bNodeSocket * prev
void(* initfunc_api)(const struct bContext *C, struct PointerRNA *ptr)
void(* draw_buttons_ex)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)