Blender Git Loki
Git Commits -> Revision 5ca38fd
Revision 5ca38fd by Hans Goudey (master) December 10, 2021, 16:42 (GMT) |
Cleanup/Docs: Add comments to Mesh header, rearrange fields Most of the fields in Mesh had no comments, or outdated misleading comments. For example, "BMESH ONLY" referred to the BMesh project, not the data structure. Given how much these structs are used, it should save a lot of time to have proper comments. I also rearranged the fields in mesh to have a more logical order. Now the most important fields come first. In the process I was able to remove 19 bytes of unnecessary padding (31->12). I just had to change a `short` flag to `char`. Differential Revision: https://developer.blender.org/D13454 |
Commit Details:
Full Hash: 5ca38fd612cdde15bf46a66f96993bad6a185706
Parent Commit: f886f29
Lines Changed: +205, -99
9 Modified Paths:
/source/blender/blenkernel/BKE_mesh.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh.cc (+2, -2) (Diff)
/source/blender/blenkernel/intern/object.cc (+1, -1) (Diff)
/source/blender/editors/transform/transform_convert_object_texspace.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+2, -3) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+18, -8) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+177, -80) (Diff)
/source/blender/makesdna/DNA_meta_types.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh.cc (+2, -2) (Diff)
/source/blender/blenkernel/intern/object.cc (+1, -1) (Diff)
/source/blender/editors/transform/transform_convert_object_texspace.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+2, -3) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+18, -8) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+177, -80) (Diff)
/source/blender/makesdna/DNA_meta_types.h (+2, -2) (Diff)