Blender V5.0
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
8
9#include <optional>
10
11#include "BKE_node_runtime.hh"
12
14
16
18 const bNodeTree *ntree,
19 const char **r_disabled_hint)
20{
21 if (!STREQ(ntree->idname, "CompositorNodeTree")) {
22 *r_disabled_hint = RPT_("Not a compositor node tree");
23 return false;
24 }
25 return true;
26}
27
28void cmp_node_update_default(bNodeTree * /*ntree*/, bNode *node)
29{
30 node->runtime->need_exec = 1;
31}
32
34 std::string idname,
35 const std::optional<int16_t> legacy_type)
36{
37 blender::bke::node_type_base(*ntype, idname, legacy_type);
38
43}
#define STREQ(a, b)
#define RPT_(msgid)
void node_type_base(bNodeType &ntype, std::string idname, std::optional< int16_t > legacy_type=std::nullopt)
Definition node.cc:5099
void search_link_ops_for_basic_node(GatherLinkSearchOpParams &params)
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
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(blender::bke::NodeInsertLinkParams &)
Definition node_util.cc:266
char idname[64]
bNodeRuntimeHandle * runtime
Defines a node type.
Definition BKE_node.hh:238
bool(* insert_link)(NodeInsertLinkParams &params)
Definition BKE_node.hh:333
bool(* poll)(const bNodeType *ntype, const bNodeTree *nodetree, const char **r_disabled_hint)
Definition BKE_node.hh:321
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
Definition BKE_node.hh:378
void(* updatefunc)(bNodeTree *ntree, bNode *node)
Definition BKE_node.hh:281