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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-27 06:48:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-27 06:48:26 +0300
commitee367084a7ee499d99f32b4343b4e7905f6afa5c (patch)
treec6345e63afc9b40c627b713b98fd3e66a24b20d9 /source
parent10cfa75e1d1e80b32da640a0e7de2b50f831dcfd (diff)
Comment: note that structs are zeroed instead of using defaults
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesdna/intern/dna_genfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c
index 3690a1126d4..d199638710d 100644
--- a/source/blender/makesdna/intern/dna_genfile.c
+++ b/source/blender/makesdna/intern/dna_genfile.c
@@ -1194,7 +1194,10 @@ static void reconstruct_struct(const DNA_ReconstructInfo *reconstruct_info,
new_block + step->data.substruct.new_offset);
break;
case RECONSTRUCT_STEP_INIT_ZERO:
- /* Do nothing, because the memory block has been calloced. */
+ /* Do nothing, because the memory block are zeroed (from #MEM_callocN).
+ *
+ * Note that the struct could be initialized with the default struct,
+ * however this complicates versioning, especially with flags, see: D4500. */
break;
}
}