Blender Git Commit Log

Git Commits -> Revision cd2849c

Revision cd2849c by Sybren A. Stüvel (master)
November 23, 2021, 11:29 (GMT)
Asset Browser: add operator for installing asset bundles

Add an operator "Copy to Asset Library" for installing asset bundles
into already-existing asset libraries.

The operator is shown when:
- the "Current File" library is selected,
- the blend file name matches `*_bundle.blend`, and
- the file is not already located in an asset library.

The user can select a target asset library, then gets a "Save As"
dialogue box to select where in that library the file should be saved.
This allows for renaming, saving in a subdirectory, etc.

The Asset Catalogs from the asset bundle are merged into the target
asset library.

The operator will refuse to run when external files are referenced. This
is not done in its poll function, as it's quite an extensive operator
(it loops over all ID datablocks).

Reviewed by: Severin

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

Commit Details:

Full Hash: cd2849c89b65131cc381a1bf9ab75527afd51a4f
Parent Commit: b02ac2d
Lines Changed: +353, -17

12 Modified Paths:

/source/blender/blenkernel/BKE_asset_catalog.hh (+14, -0) (Diff)
/source/blender/blenkernel/intern/asset_catalog.cc (+26, -0) (Diff)
/source/blender/blenloader/BLO_writefile.h (+8, -0) (Diff)
/source/blender/editors/asset/ED_asset_library.h (+2, -1) (Diff)
/source/blender/editors/asset/intern/asset_library_reference_enum.cc (+19, -14) (Diff)
/source/blender/editors/asset/intern/asset_ops.cc (+246, -0) (Diff)
/source/blender/editors/include/ED_fileselect.h (+1, -0) (Diff)
/source/blender/editors/space_file/filesel.c (+9, -0) (Diff)
/source/blender/editors/space_file/file_panels.c (+15, -1) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+10, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021