2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2007 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
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,
|
2023-05-07 15:22:58 +10:00
|
|
|
int label_maxncpy);
|
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
|