Blender Git Commit Log

Git Commits -> Revision c328049

Revision c328049 by Bastien Montagne (master)
March 5, 2020, 09:58 (GMT)
Initial step for IDTypeInfo refactor 'cleanup' project.

Introduce new IDTypeInfo structure.

Each ID type will have its own, with some minimal basic common info,
and ID management callbacks.

This patch only does it for Object type, for demo/testing purpose.
Moving all existing IDs is a goal of next "cleanup Friday".

Note that BKE_idcode features should then be merged back into BKE_idtype -
but this will have to be done later, once all ID types have been properly
converted to the new system.

Another later TODO might be to try and add callbacks for file read/write,
and lib_query ID usages looper.

This is part of T73719.

Thanks to @brecht for initial idea, and reviewing the patch.

Differential Revision: https://developer.blender.org/D6966

Commit Details:

Full Hash: c328049535a4bc9453f5e93365a00759347e3a05
Parent Commit: 6665ce8
Lines Changed: +636, -307

2 Added Paths:

/source/blender/blenkernel/BKE_idtype.h (+142, -0) (View)
/source/blender/blenkernel/intern/idtype.c (+81, -0) (View)

6 Modified Paths:

/source/blender/blenkernel/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+149, -106) (Diff)
/source/blender/blenkernel/intern/lib_id_delete.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+247, -201) (Diff)
/source/creator/creator.c (+2, -0) (Diff)
/tests/gtests/blenloader/blendfile_loading_base_test.cc (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021