Blender  V3.3
versioning_common.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 struct ARegion;
10 struct ListBase;
11 struct Main;
12 struct bNodeTree;
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 struct ARegion *do_versions_add_region_if_not_found(struct ListBase *regionbase,
19  int region_type,
20  const char *name,
21  int link_after_region_type);
22 
28 ID *do_versions_rename_id(Main *bmain, short id_type, const char *name_src, const char *name_dst);
29 
31  int node_type,
32  const char *old_name,
33  const char *new_name);
35  int node_type,
36  const char *old_name,
37  const char *new_name);
39  int node_type,
40  const char *old_name,
41  const char *new_name);
42 
61  Main *bmain,
62  int node_tree_type, /* NTREE_....., e.g. NTREE_SHADER */
63  int node_type, /* SH_NODE_..., e.g. SH_NODE_BSDF_PRINCIPLED */
64  int socket_index_orig,
65  int socket_index_offset,
66  int total_number_of_sockets);
67 
71 void version_node_id(struct bNodeTree *ntree, int node_type, const char *new_name);
72 
77 
79  struct bNode *node,
81  int type,
82  int subtype,
83  const char *identifier,
84  const char *name);
85 
91 ARegion *do_versions_add_region(int regiontype, const char *name);
92 
93 #ifdef __cplusplus
94 }
95 #endif
eNodeSocketInOut
_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
Definition: DNA_ID.h:368
Definition: BKE_main.h:121
char name[64]
char identifier[64]
void version_node_socket_index_animdata(Main *bmain, int node_tree_type, int node_type, int socket_index_orig, int socket_index_offset, int total_number_of_sockets)
void version_node_socket_id_delim(bNodeSocket *socket)
void version_node_id(struct bNodeTree *ntree, int node_type, const char *new_name)
void version_node_socket_name(struct bNodeTree *ntree, int node_type, const char *old_name, const char *new_name)
ARegion * do_versions_add_region(int regiontype, const char *name)
void version_socket_update_is_used(bNodeTree *ntree)
struct bNodeSocket * version_node_add_socket_if_not_exist(struct bNodeTree *ntree, struct bNode *node, eNodeSocketInOut in_out, int type, int subtype, const char *identifier, const char *name)
void version_node_input_socket_name(struct bNodeTree *ntree, int node_type, const char *old_name, const char *new_name)
void version_node_output_socket_name(struct bNodeTree *ntree, int node_type, const char *old_name, const char *new_name)
struct ARegion * do_versions_add_region_if_not_found(struct ListBase *regionbase, int region_type, const char *name, int link_after_region_type)
ID * do_versions_rename_id(Main *bmain, short id_type, const char *name_src, const char *name_dst)