Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/editors/asset/intern/asset_list.cc7
1 files changed, 7 insertions, 0 deletions
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) {