From 2ddbf81c478267535dde20c50750c26bf5c34b99 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 24 Nov 2021 09:57:30 +0100 Subject: Cleanup: Add info about attributes init in Mesh IDTypeInfo after conversion to C++. rB6002914f141f totally lost those info, in C++ we use comments by convention. --- source/blender/blenkernel/intern/mesh.cc | 46 +++++++++++++++++--------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc index 73e0c2cfa74..bf120b4c1a7 100644 --- a/source/blender/blenkernel/intern/mesh.cc +++ b/source/blender/blenkernel/intern/mesh.cc @@ -355,28 +355,30 @@ static void mesh_read_expand(BlendExpander *expander, ID *id) } IDTypeInfo IDType_ID_ME = { - ID_ME, - FILTER_ID_ME, - INDEX_ID_ME, - sizeof(Mesh), - "Mesh", - "meshes", - BLT_I18NCONTEXT_ID_MESH, - IDTYPE_FLAGS_APPEND_IS_REUSABLE, - - mesh_init_data, - mesh_copy_data, - mesh_free_data, - nullptr, - mesh_foreach_id, - nullptr, - nullptr, - mesh_blend_write, - mesh_blend_read_data, - mesh_blend_read_lib, - mesh_read_expand, - nullptr, - nullptr, + /* id_code */ ID_ME, + /* id_filter */ FILTER_ID_ME, + /* main_listbase_index */ INDEX_ID_ME, + /* struct_size */ sizeof(Mesh), + /* name */ "Mesh", + /* name_plural */ "meshes", + /* translation_context */ BLT_I18NCONTEXT_ID_MESH, + /* flags */ IDTYPE_FLAGS_APPEND_IS_REUSABLE, + + /* init_data */ mesh_init_data, + /* copy_data */ mesh_copy_data, + /* free_data */ mesh_free_data, + /* make_local */ nullptr, + /* foreach_id */ mesh_foreach_id, + /* foreach_cache */ nullptr, + /* owner_get */ nullptr, + + /* blend_write */ mesh_blend_write, + /* blend_read_data */ mesh_blend_read_data, + /* blend_read_lib */ mesh_blend_read_lib, + /* blend_read_expand */ mesh_read_expand, + /* blend_read_undo_preserve */ nullptr, + /* lib_override_apply_post */ nullptr, + /* asset_type_info */ nullptr, }; enum { -- cgit v1.2.3