Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-12 01:29:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-12 01:38:46 +0300
commit3ec4c2f842841ca0d0f51694dc3e88dfe22195b1 (patch)
tree7fca8a48b2acd11529b2983edee13a794fa3ed07 /source/blender/makesdna/DNA_genfile.h
parent2a6d03493c9dbf9cc142ef1cdeb191e3929081d1 (diff)
DNA: support versioning structs & struct members
This is only to be used rarely because it's not forwards compatible. Replace version patching of old 2.80 DNA with a more generic API.
Diffstat (limited to 'source/blender/makesdna/DNA_genfile.h')
-rw-r--r--source/blender/makesdna/DNA_genfile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_genfile.h b/source/blender/makesdna/DNA_genfile.h
index 774b9038bd1..4f67246c891 100644
--- a/source/blender/makesdna/DNA_genfile.h
+++ b/source/blender/makesdna/DNA_genfile.h
@@ -103,4 +103,9 @@ bool DNA_struct_elem_find(const struct SDNA *sdna, const char *stype, const char
int DNA_elem_type_size(const eSDNA_Type elem_nr);
+bool DNA_sdna_patch_struct(
+ struct SDNA *sdna, const char *struct_name_old, const char *struct_name_new);
+bool DNA_sdna_patch_struct_member(
+ struct SDNA *sdna, const char *struct_name, const char *member_old, const char *member_new);
+
#endif /* __DNA_GENFILE_H__ */