Adds a new built-in asset library that contains all other asset libraries visible in the asset library selector menu. This also means all their asset catalogs will be displayed as a single merged tree. The asset catalogs are not editable, since this would require support for writing multiple catalog definition files, which isn't there yet. Often it's not relevant where an asset comes from. Users just want to be able to get an asset quickly, comparable to how people use a search engine to browse images or the web itself, instead of first going to a dedicated platform. They don't want to bother with first choosing where they want the result to come from. This especially is needed for the Asset Shelf (T102879) that is being developed for the brush assets project (T101895). With this, users will have access to all their brushes efficiently from the 3D view, without much browsing. Did an informal review of the asset system bits with Sybren.
31 lines
585 B
C
31 lines
585 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup DNA
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* Struct members on own line. */
|
|
/* clang-format off */
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/** \name Asset Struct
|
|
* \{ */
|
|
|
|
#define _DNA_DEFAULT_AssetMetaData \
|
|
{ \
|
|
0 \
|
|
}
|
|
|
|
#define _DNA_DEFAULT_AssetLibraryReference \
|
|
{ \
|
|
.type = ASSET_LIBRARY_LOCAL, \
|
|
/* Not needed really (should be ignored for anything but #ASSET_LIBRARY_CUSTOM), but helps debugging. */ \
|
|
.custom_library_index = -1, \
|
|
}
|
|
|
|
/** \} */
|
|
|
|
/* clang-format on */
|