From d17a0270344101c4cd6e5026ea8239240868d24f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 15 Feb 2019 18:09:02 +1100 Subject: 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. --- source/blender/makesdna/DNA_sdna_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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; -- cgit v1.2.3