Blender V4.3
node_composite_util.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2006 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#include "BKE_node_runtime.hh"
10
12
14
16 const bNodeTree *ntree,
17 const char **r_disabled_hint)
18{
19 if (!STREQ(ntree->idname, "CompositorNodeTree")) {
20 *r_disabled_hint = RPT_("Not a compositor node tree");
21 return false;
22 }
23 return true;
24}
25
26void cmp_node_update_default(bNodeTree * /*ntree*/, bNode *node)
27{
28 node->runtime->need_exec = 1;
29}
30
31void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
32{
33 blender::bke::node_type_base(ntype, type, name, nclass);
34
39}
#define STREQ(a, b)
#define RPT_(msgid)
void node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
Definition node.cc:4325
void search_link_ops_for_basic_node(GatherLinkSearchOpParams &params)
void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void cmp_node_update_default(bNodeTree *, bNode *node)
bool cmp_node_poll_default(const blender::bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
bool node_insert_link_default(bNodeTree *, bNode *, bNodeLink *)
Definition node_util.cc:281
char idname[64]
Defines a node type.
Definition BKE_node.hh:218
bool(* poll)(const bNodeType *ntype, const bNodeTree *nodetree, const char **r_disabled_hint)
Definition BKE_node.hh:299
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
Definition BKE_node.hh:363
bool(* insert_link)(bNodeTree *ntree, bNode *node, bNodeLink *link)
Definition BKE_node.hh:309
void(* updatefunc)(bNodeTree *ntree, bNode *node)
Definition BKE_node.hh:257