Blender  V3.3
node_composite_util.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2006 Blender Foundation. All rights reserved. */
3 
9 
10 #include "node_composite_util.hh"
11 
14  const char **r_disabled_hint)
15 {
16  if (!STREQ(ntree->idname, "CompositorNodeTree")) {
17  *r_disabled_hint = TIP_("Not a compositor node tree");
18  return false;
19  }
20  return true;
21 }
22 
24 {
25  LISTBASE_FOREACH (bNodeSocket *, sock, &node->outputs) {
26  if (sock->cache) {
27  // free_compbuf(sock->cache);
28  // sock->cache = nullptr;
29  }
30  }
31  node->need_exec = 1;
32 }
33 
34 void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
35 {
36  node_type_base(ntype, type, name, nclass);
37 
38  ntype->poll = cmp_node_poll_default;
42 }
void node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
Definition: node.cc:4277
#define LISTBASE_FOREACH(type, var, list)
Definition: BLI_listbase.h:336
#define UNUSED(x)
#define STREQ(a, b)
#define TIP_(msgid)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
OperationNode * node
bNodeTree * ntree
void search_link_ops_for_basic_node(GatherLinkSearchOpParams &params)
bool cmp_node_poll_default(bNodeType *UNUSED(ntype), bNodeTree *ntree, const char **r_disabled_hint)
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void cmp_node_update_default(bNodeTree *UNUSED(ntree), bNode *node)
void node_insert_link_default(bNodeTree *ntree, bNode *node, bNodeLink *link)
Definition: node_util.c:326
char idname[64]
Defines a node type.
Definition: BKE_node.h:226
bool(* poll)(struct bNodeType *ntype, struct bNodeTree *nodetree, const char **r_disabled_hint)
Definition: BKE_node.h:292
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
Definition: BKE_node.h:335
void(* updatefunc)(struct bNodeTree *ntree, struct bNode *node)
Definition: BKE_node.h:265
void(* insert_link)(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link)
Definition: BKE_node.h:301