From 73f7ed7ffadcae3795910155d52453650d4e97a4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 22 May 2019 09:15:06 +1000 Subject: 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. --- source/blender/makesdna/DNA_sdna_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna/DNA_sdna_types.h') 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; -- cgit v1.2.3