diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 00:51:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 00:51:00 +0300 |
commit | bc657ef16eed438a1eb5156e5b46173044905dcc (patch) | |
tree | dc27eb95de1bdc4140c80bf171abe5186f1971d6 /source/blender/makesdna/intern/dna_genfile.c | |
parent | eff3728db912abc1477d0e90d2a6533b61f7295f (diff) |
DNA: warn about old versioning being incomplete
Also sync variable names w/ D4342
Diffstat (limited to 'source/blender/makesdna/intern/dna_genfile.c')
-rw-r--r-- | source/blender/makesdna/intern/dna_genfile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c index 6fb9408c197..cef152fb45d 100644 --- a/source/blender/makesdna/intern/dna_genfile.c +++ b/source/blender/makesdna/intern/dna_genfile.c @@ -379,6 +379,14 @@ static bool init_structDNA( for (int nr = 0; nr < sdna->nr_types; nr++) { sdna->types[nr] = cp; + /* ------------------------------------------------------------- */ + /* WARNING! + * + * The renaming here isn't complete, references to the old struct names + * are still included in DNA, now fixing these struct names properly + * breaks forward compatibility. Leave these as-is, but don't add to them! + * See D4342#98780 */ + /* this is a patch, to change struct names without a conflict with SDNA */ /* be careful to use it, in this case for a system-struct (opengl/X) */ @@ -394,6 +402,8 @@ static bool init_structDNA( else if (strcmp("CollectionObject", cp) == 0) { sdna->types[nr] = "GroupObject"; } + /* END WARNING */ + /* ------------------------------------------------------------- */ while (*cp) cp++; cp++; |