[Bf-blender-cvs] [fce0b824a76] master: Assets: Enabling Asset Indexing.
Jeroen Bakker
noreply at git.blender.org
Tue Jan 18 11:27:37 CET 2022
Commit: fce0b824a767331f1d018e98f5400d376364591f
Author: Jeroen Bakker
Date: Tue Jan 18 11:20:50 2022 +0100
Branches: master
https://developer.blender.org/rBfce0b824a767331f1d018e98f5400d376364591f
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.
===================================================================
M source/blender/editors/asset/intern/asset_list.cc
M source/blender/editors/space_file/space_file.c
===================================================================
diff --git a/source/blender/editors/asset/intern/asset_list.cc b/source/blender/editors/asset/intern/asset_list.cc
index 1bfdd83b8e3..c075ae390d9 100644
--- a/source/blender/editors/asset/intern/asset_list.cc
+++ b/source/blender/editors/asset/intern/asset_list.cc
@@ -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) {
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index bbf3c6f768c..ea336d0b65c 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -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);
More information about the Bf-blender-cvs
mailing list