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:
authorBrecht Van Lommel <brecht@blender.org>2021-09-09 17:35:04 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-09 18:11:01 +0300
commited4ef77f496e5da6bf20cfbc4165274c67b26822 (patch)
tree0acbe6552d46f72963eb5d1ad4c67ec91e295fb6
parentb4fd8750f96d42a53bbccf4952bab1b6f018d78f (diff)
DNA: allow initializing defaults for deprecated struct members
This can be useful for better forward compatibility.
-rw-r--r--source/blender/makesdna/intern/dna_defaults.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/dna_defaults.c b/source/blender/makesdna/intern/dna_defaults.c
index a573e2f9e8c..3570f5a6a6f 100644
--- a/source/blender/makesdna/intern/dna_defaults.c
+++ b/source/blender/makesdna/intern/dna_defaults.c
@@ -68,6 +68,8 @@
* #BLO_update_defaults_startup_blend & #blo_do_versions_userdef.
*/
+#define DNA_DEPRECATED_ALLOW
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>