Comment: note that structs are zeroed instead of using defaults

This commit is contained in:
Campbell Barton 2021-03-27 14:48:26 +11:00
parent 10cfa75e1d
commit ee367084a7
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}