Disable asset indexing in the Asset List

Asset indexing should be disabled, but this was overlooked in the
asset list (used for the pose library in the 3D View).
This commit is contained in:
Sybren A. Stüvel 2021-12-06 17:40:51 +01:00
parent 86992a96b8
commit 0c703b856b
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,10 @@
#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 {
/* -------------------------------------------------------------------- */
@ -169,7 +173,10 @@ void AssetList::setup()
true,
"",
"");
#ifdef SPACE_FILE_ENABLE_ASSET_INDEXING
filelist_setindexer(files, &file_indexer_asset);
#endif
char path[FILE_MAXDIR] = "";
if (user_library) {