Blender V5.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
8
9#include <optional>
10
11#include "BKE_node_runtime.hh"
12
14
16
17namespace blender {
18
20 const bNodeTree *ntree,
21 const char **r_disabled_hint)
22{
23 if (!STREQ(ntree->idname, "CompositorNodeTree")) {
24 *r_disabled_hint = RPT_("Not a compositor node tree");
25 return false;
26 }
27 return true;
28}
29
31 UString idname,
32 const std::optional<int16_t> legacy_type)
33{
34 bke::node_type_base(*ntype, idname, legacy_type);
35
39}
40
41} // namespace blender
#define RPT_(msgid)
#define STREQ(a, b)
void node_type_base(bNodeType &ntype, UString idname, std::optional< int16_t > legacy_type=std::nullopt)
Definition node.cc:5866
void search_link_ops_for_basic_node(GatherLinkSearchOpParams &params)
BMesh Iterators.
bool node_insert_link_default(bke::NodeInsertLinkParams &)
Definition node_util.cc:223
bool cmp_node_poll_default(const bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
Defines a node type.
Definition BKE_node.hh:265
bool(*) poll(const bNodeType *ntype, const bNodeTree *nodetree, const char **r_disabled_hint)
Definition BKE_node.hh:352
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
Definition BKE_node.hh:409
bool(*) insert_link(NodeInsertLinkParams &params)
Definition BKE_node.hh:364