Blender Git Loki

Git Commits -> Revision 3115e95

July 30, 2021, 14:56 (GMT)
Cleanup: Move reorganize asset files

I'm trying to move away from general files with lots of things in them,
and instead have many small & focused files. I find that easier to
work with since everything has clear responsibilities, even if there is
some minor overhead in managing all these files.
I also try to differentiate more clearly between public and internal
files. So source files and internal headers are in a `intern/`
sub-directory, public functions are in a number of headers one level
higher.
For convenience and to make this compatible with our existing general
headers in `editors/include`, I made the `ED_asset.h` there include all
these public headers.
This is of course a bit of an experiment, let's see how it works in
practice.

Also corrected the name of `ED_asset_can_make_single_from_context()`.

Commit Details:

Full Hash: 3115e957d612ac70a04490a87fd26dd2c9c71754
Parent Commit: aa23609
Committed By: Fabian Schempp
Lines Changed: +1369, -1151

10 Added Paths:

/source/blender/editors/asset/ED_asset_handle.h (+45, -0) (View)
/source/blender/editors/asset/ED_asset_library.h (+35, -0) (View)
/source/blender/editors/asset/ED_asset_list.h (+54, -0) (View)
/source/blender/editors/asset/ED_asset_list.hh (+38, -0) (View)
/source/blender/editors/asset/ED_asset_mark_clear.h (+37, -0) (View)
/source/blender/editors/asset/ED_asset_temp_id_consumer.h (+48, -0) (View)
/source/blender/editors/asset/intern/asset_list.cc (+589, -0) (View)
/source/blender/editors/asset/intern/asset_mark_clear.cc (+83, -0) (View)
/source/blender/editors/asset/intern/asset_ops.cc (+292, -0) (View)
/source/blender/editors/asset/intern/asset_temp_id_consumer.cc (+116, -0) (View)

4 Deleted Paths:

/source/blender/editors/asset/asset_edit.cc (+0, -82)
/source/blender/editors/asset/asset_list.cc (+0, -587)
/source/blender/editors/asset/asset_ops.cc (+0, -292)
/source/blender/editors/asset/asset_temp_id_consumer.cc (+0, -113)

5 Modified Paths:

/source/blender/editors/asset/CMakeLists.txt (+11, -4) (Diff)
/source/blender/editors/asset/intern/asset_handle.cc (+4, -1) (Diff)
/source/blender/editors/asset/intern/asset_library_reference_enum.cc (+3, -3) (Diff)
/source/blender/editors/include/ED_asset.h (+13, -68) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021