Assets: Enabling Asset Indexing.
Asset indexing was disabled as ID property indexing wasn't supported. Now that ID property support is added we can enable asset indexing. Check {T91406} for more information about asset indexing.
This commit is contained in:
parent
36068487d0
commit
fce0b824a7
|
@ -49,10 +49,6 @@
|
|||
#include "ED_asset_list.hh"
|
||||
#include "asset_library_reference.hh"
|
||||
|
||||
/* Enable asset indexing. Currently disabled as ID properties aren't indexed yet and is needed for
|
||||
* object snapping. See {D12990}. */
|
||||
//#define SPACE_FILE_ENABLE_ASSET_INDEXING
|
||||
|
||||
namespace blender::ed::asset {
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
@ -174,9 +170,7 @@ void AssetList::setup()
|
|||
"",
|
||||
"");
|
||||
|
||||
#ifdef SPACE_FILE_ENABLE_ASSET_INDEXING
|
||||
filelist_setindexer(files, &file_indexer_asset);
|
||||
#endif
|
||||
|
||||
char path[FILE_MAXDIR] = "";
|
||||
if (user_library) {
|
||||
|
|
|
@ -61,10 +61,6 @@
|
|||
#include "filelist.h"
|
||||
#include "fsmenu.h"
|
||||
|
||||
/* Enable asset indexing. Currently disabled as ID properties aren't indexed yet and is needed for
|
||||
* object snapping. See {D12990}. */
|
||||
//#define SPACE_FILE_ENABLE_ASSET_INDEXING
|
||||
|
||||
static ARegion *file_ui_region_ensure(ScrArea *area, ARegion *region_prev)
|
||||
{
|
||||
ARegion *region;
|
||||
|
@ -359,11 +355,9 @@ static void file_refresh(const bContext *C, ScrArea *area)
|
|||
sfile->files, asset_params->asset_catalog_visibility, &asset_params->catalog_id);
|
||||
}
|
||||
|
||||
#ifdef SPACE_FILE_ENABLE_ASSET_INDEXING
|
||||
if (ED_fileselect_is_asset_browser(sfile)) {
|
||||
filelist_setindexer(sfile->files, &file_indexer_asset);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Update the active indices of bookmarks & co. */
|
||||
sfile->systemnr = fsmenu_get_active_indices(fsmenu, FS_CATEGORY_SYSTEM, params->dir);
|
||||
|
|
Loading…
Reference in New Issue