2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later
|
2023-02-22 10:16:42 +01:00
|
|
|
* Copyright 2007 Blender Foundation */
|
2011-09-05 21:01:50 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup nodes
|
2011-09-05 21:01:50 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#pragma once
|
2011-09-05 21:01:50 +00:00
|
|
|
|
|
|
|
|
#include "DNA_listBase.h"
|
|
|
|
|
|
2020-04-20 10:58:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2011-09-05 21:01:50 +00:00
|
|
|
struct bNodeTree;
|
|
|
|
|
|
2021-12-10 21:40:30 +11:00
|
|
|
/** Groups display their internal tree name as label. */
|
2021-12-11 09:51:53 -06:00
|
|
|
void node_group_label(const struct bNodeTree *ntree,
|
|
|
|
|
const struct bNode *node,
|
|
|
|
|
char *label,
|
|
|
|
|
int maxlen);
|
2022-12-28 20:15:41 -05:00
|
|
|
bool node_group_poll_instance(const struct bNode *node,
|
|
|
|
|
const struct bNodeTree *nodetree,
|
2021-04-12 18:43:23 +02:00
|
|
|
const char **r_disabled_hint);
|
2011-09-05 21:01:50 +00:00
|
|
|
|
2021-12-10 21:40:30 +11:00
|
|
|
/**
|
|
|
|
|
* Global update function for Reroute node types.
|
|
|
|
|
* This depends on connected nodes, so must be done as a tree-wide update.
|
|
|
|
|
*/
|
2012-08-06 18:49:28 +00:00
|
|
|
void ntree_update_reroute_nodes(struct bNodeTree *ntree);
|
|
|
|
|
|
2020-04-20 10:58:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|