[Bf-blender-cvs] [2ddbf81c478] master: Cleanup: Add info about attributes init in Mesh IDTypeInfo after conversion to C++.
Bastien Montagne
noreply at git.blender.org
Wed Nov 24 10:09:40 CET 2021
Commit: 2ddbf81c478267535dde20c50750c26bf5c34b99
Author: Bastien Montagne
Date: Wed Nov 24 09:57:30 2021 +0100
Branches: master
https://developer.blender.org/rB2ddbf81c478267535dde20c50750c26bf5c34b99
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.
===================================================================
M source/blender/blenkernel/intern/mesh.cc
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list