56 char new_name[
sizeof(tno->
name)];
67 for (;
i;
i =
i->next) {
74 if (new_name[0] ==
'\0') {
76 if (
len >= 4 && sscanf(
name +
len - 4,
".%03d", &suffix) == 1) {
82 new_len = std::min<ulong>(new_len,
sizeof(tno->
name) - 1);
88 int name_ofs = new_len - 4;
89 BLI_snprintf(new_name + name_ofs,
sizeof(new_name) - name_ofs,
".%03d", ++suffix);
92 if (new_name[0] !=
'\0') {
103 while (tnode->
prev) {
108 for (; tnode; tnode = tnode->
next) {
#define NODE_CLASS_OUTPUT
char * STRNCPY(char(&dst)[N], const char *src)
size_t BLI_snprintf(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
BMesh const char void * data
void * MEM_callocN(size_t len, const char *str)
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))
void node_type_size_preset(bNodeType &ntype, eNodeSizePreset size)
static void exec(void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
static blender::bke::bNodeSocketTemplate inputs[]
static void init(bNodeTree *, bNode *node)
static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)
static void unique_name(bNode *node)
static void exec(void *data, int, bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack **)
void register_node_type_tex_output()
static void assign_index(bNode *node)
void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
void tex_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void params_from_cdata(TexParams *out, TexCallData *in)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
Compact definition of a node socket.
void(* initfunc)(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy