Blender Git Commits

Blender Git "temp-assetlib-plus-uuid-rename" branch commits.

Page: 3 / 4

August 17, 2021, 09:22 (GMT)
Merge branch 'master' into temp-asset-browser-catalogs
August 11, 2021, 13:52 (GMT)
Asset Catalogs: change default catalog definition file name

Change the default catalog definition file name from
"single_catalog_definition_file.cats.txt" to "blender_assets.cats.txt".
August 11, 2021, 13:36 (GMT)
Cleanup: use same parameter name in declaration & definition
August 11, 2021, 12:48 (GMT)
Asset Catalogs: clean up catalog paths before using them

Clean up paths by trimming whitespace and separators
`/path/to/something ` ? `path/to/something`.
August 11, 2021, 11:59 (GMT)
Asset Catalogs: allow adding new catalogs

New catalogs can be added with `AssetCatalogService::create_catalog()`.
It only requires the catalog path, and convert that into a suitable
catalog ID itself. It is intended that artists won't have to bother with
assigning catalog IDs, and that editing those is more of an advanced
feature.

Adding a catalog will automatically save the catalog definition file to
disk.
August 11, 2021, 11:35 (GMT)
Asset Catalogs: gracefully handle catalog IDs without path

Ignore lines in a catalog definition file when it only contains the
catalog ID, and not the catalog path.
August 11, 2021, 10:21 (GMT)
Cleanup: asset catalogs, use doxygen comments

Use `/**` instead of `/*` for some function documentation comments.

No functional changes.
August 11, 2021, 10:21 (GMT)
Asset Catalogs: pass root dir of asset library to AssetCatalogService

Pass the root directory of the asset library to the `AssetCatalogService`
constructor. This makes it possible for newly created catalogs to be saved
somewhere.

No functional changes.
August 11, 2021, 09:35 (GMT)
Cleanup, Asset Catalogs: turn default catalog filename into a constant

Instead of hard-coding a path somewhere in the source, store it in a named
string constant.

No functional changes.
August 11, 2021, 09:34 (GMT)
Cleanup: Asset Catalogs, make path separator static class member

Make `AssetCatalogService::path_separator` a static class member. There is
no need to make such constants per-object.

This in itself isn't that interesting a change, but it will be relevant
for an upcoming new string constant.

No functional changes.
August 11, 2021, 09:25 (GMT)
Merge remote-tracking branch 'origin/master' into temp-asset-browser-catalogs
August 9, 2021, 15:53 (GMT)
Cleanup: Assets, add asset catalog documentation comments
August 9, 2021, 15:53 (GMT)
Cleanup: Assets, remove unused forward/namespace declarations
August 9, 2021, 15:49 (GMT)
Cleanup: Asset Catalogs, make fields private and add `_` suffix.
August 9, 2021, 15:29 (GMT)
Partially revert "Cleanup: Assets, move AssetLibrary struct to global namespace"

This reverts the namespace changes from commit
784b97e280c1ba479822d0fba6ebfce0b91595d4.
August 9, 2021, 15:01 (GMT)
Cleanup: Assets, move AssetLibrary struct to global namespace

Move `blender::bke::AssetLibrary` to the global namespace, causing the
C `struct AssetLibrary` to refer to the same object as the corresponding C++
struct.

Also move `intern/asset_library.hh` to `BKE_asset_library.hh`,
mimicking `BKE_geometry_set.hh`.

This makes the C and C++ pointers compatible, cleans up the code a bit,
and aids in debugging.

No functional changes.
August 9, 2021, 14:43 (GMT)
Cleanup: C++ to C comment style

No functional changes.
August 9, 2021, 14:43 (GMT)
Fix pointer ownership issue in `AssetCatalogService::parse_catalog_file()`, and solve some feature envy by adding a few `AssetCatalogDefinitionFile` methods.
August 9, 2021, 12:45 (GMT)
Filelist: load AssetLibrary (and thus catalogs)

Load `AssetLibrary` struct when refreshing the filelist. This primarily
loads the asset catalog definition files.
August 9, 2021, 10:39 (GMT)
Merge remote-tracking branch 'origin/master' into temp-asset-browser-catalogs
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021