Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_common.h
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * The versioning code generally expects `SOCK_IN_USE` to be set correctly. This function updates | * The versioning code generally expects `SOCK_IN_USE` to be set correctly. This function updates | ||||
| * the flag on all sockets after changes to the node tree. | * the flag on all sockets after changes to the node tree. | ||||
| */ | */ | ||||
| void version_socket_update_is_used(bNodeTree *ntree); | void version_socket_update_is_used(bNodeTree *ntree); | ||||
| ARegion *do_versions_add_region(int regiontype, const char *name); | ARegion *do_versions_add_region(int regiontype, const char *name); | ||||
| /** | |||||
| * Before geometry nodes will getting dynamic sockets, sockets name has attribute type name. | |||||
| * This path add in attribute_math default_name<AttributeType>() and this changing some | |||||
| * names of sockets. | |||||
| */ | |||||
| void version_node_socket_attribute_type_name_inout(bNodeSocket *socket, int node_type, bool inout); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| void node_tree_relink_with_socket_id_map(bNodeTree &ntree, | void node_tree_relink_with_socket_id_map(bNodeTree &ntree, | ||||
| bNode &old_node, | bNode &old_node, | ||||
| bNode &new_node, | bNode &new_node, | ||||
| const blender::Map<std::string, std::string> &map); | const blender::Map<std::string, std::string> &map); | ||||
| #endif | #endif | ||||