58 char new_name[
sizeof(tno->
name)];
62 const char *name = tno->
name;
69 for (; i; i = i->
next) {
76 if (new_name[0] ==
'\0') {
77 int len = strlen(name);
78 if (
len >= 4 && sscanf(name +
len - 4,
".%03d", &suffix) == 1) {
84 new_len = std::min<ulong>(new_len,
sizeof(tno->
name) - 1);
90 int name_ofs = new_len - 4;
91 BLI_snprintf(new_name + name_ofs,
sizeof(new_name) - name_ofs,
".%03d", ++suffix);
94 if (new_name[0] !=
'\0') {
105 while (tnode->
prev) {
110 for (; tnode; tnode = tnode->
next) {
#define NODE_CLASS_OUTPUT
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
void node_register_type(bNodeType &ntype)
void node_type_socket_templates(bNodeType *ntype, bNodeSocketTemplate *inputs, bNodeSocketTemplate *outputs)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
size_t BLI_snprintf(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
char * STRNCPY(char(&dst)[N], const char *src)
void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
void register_node_type_tex_output()
BMesh const char void * data
void params_from_cdata(TexParams *out, TexCallData *in)
static bke::bNodeSocketTemplate inputs[]
void tex_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
static void assign_index(bNode *node)
static void unique_name(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
static void exec(void *data, int, bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack **)
static constexpr int _160
Compact definition of a node socket.
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy