diff options
author | Bastien Montagne <bastien@blender.org> | 2021-11-24 12:32:28 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-11-24 12:35:47 +0300 |
commit | e0763760e4307cf5fdd16a9d860573709b2d9a18 (patch) | |
tree | a10dd33d6273441932a58ce0dfe3023195f16fe0 /source/blender/blenkernel/intern/key.c | |
parent | f8dea3fe648b9f834b6977476549911b71a899aa (diff) |
Cleanup: `IDTypeInfo` new `asset_type_info` member.
Two issues addressed here:
I) `asset_type_info` is sub-data, not a callback. Therefore, move it
before the callbacks in the `IDTypeInfo` struct.
II) More important, initialize this new attribute in *ALL* `IDTypeInfo`
instances. No member of this struct should ever be left implicitely
uninitilazed, ever.
Aftermath of rBa84f1c02d251.
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index c09fcf0715e..d601c9594d0 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -213,6 +213,7 @@ IDTypeInfo IDType_ID_KE = { .name_plural = "shape_keys", .translation_context = BLT_I18NCONTEXT_ID_SHAPEKEY, .flags = IDTYPE_FLAGS_NO_LIBLINKING, + .asset_type_info = NULL, .init_data = NULL, .copy_data = shapekey_copy_data, |