diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-15 10:09:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-15 10:17:58 +0300 |
commit | d17a0270344101c4cd6e5026ea8239240868d24f (patch) | |
tree | 0adc17cec74a69a8587f16252b32ff0dac6209c9 /source/blender/makesdna/DNA_sdna_types.h | |
parent | 925b20264162d075fcb0c979a9c9c515301bf4d1 (diff) |
Fix DNA struct member versioning logic
Possible error changing names which are shared between structs.
While the problem doesn't occur at the moment, avoid future problems.
Diffstat (limited to 'source/blender/makesdna/DNA_sdna_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_sdna_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_sdna_types.h b/source/blender/makesdna/DNA_sdna_types.h index 3ca2ce2fca4..36075d62002 100644 --- a/source/blender/makesdna/DNA_sdna_types.h +++ b/source/blender/makesdna/DNA_sdna_types.h @@ -34,7 +34,7 @@ typedef struct SDNA { bool data_alloc; /** Total number of struct members. */ - int nr_names; + int nr_names, nr_names_alloc; /** Struct member names. */ const char **names; |