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-05-22 02:15:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-22 02:19:05 +0300
commit73f7ed7ffadcae3795910155d52453650d4e97a4 (patch)
tree0dae8e1a84030afea3afea00faff15c0fe7d344a /source/blender/makesdna/DNA_sdna_types.h
parent8accb5a46f4a498327ddd41ffb6e07972b373422 (diff)
dna_genfile: add SDNA struct/elem queries that use alias names
Allow versioning code to use checks which use run-time naming instead of the old names which are only listed in dna_rename_defs.h. Addresses T64791.
Diffstat (limited to 'source/blender/makesdna/DNA_sdna_types.h')
-rw-r--r--source/blender/makesdna/DNA_sdna_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_sdna_types.h b/source/blender/makesdna/DNA_sdna_types.h
index efd3dbec637..efa7a308f88 100644
--- a/source/blender/makesdna/DNA_sdna_types.h
+++ b/source/blender/makesdna/DNA_sdna_types.h
@@ -75,6 +75,8 @@ typedef struct SDNA {
const char **names;
/** Aligned with #SDNA.types, same pointers when unchanged. */
const char **types;
+ /** A version of #SDNA.structs_map that uses #SDNA.alias.types for it's keys. */
+ struct GHash *structs_map;
} alias;
} SDNA;