From 0c703b856b59d0542bc4e2b244afcfb5aa3a09e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 6 Dec 2021 17:40:51 +0100 Subject: 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). --- source/blender/editors/asset/intern/asset_list.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/editors/asset/intern/asset_list.cc b/source/blender/editors/asset/intern/asset_list.cc index 6079e91d5f5..1a15d314c1f 100644 --- a/source/blender/editors/asset/intern/asset_list.cc +++ b/source/blender/editors/asset/intern/asset_list.cc @@ -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) { -- cgit v1.2.3