[Bf-blender-cvs] [f246a082c17] asset-browser: Render asset previews on a separate thread on "Make Asset"

Julian Eisel noreply at git.blender.org
Sat Nov 14 00:35:27 CET 2020


Commit: f246a082c176dd911b5b7c3259d5b59f2194d895
Author: Julian Eisel
Date:   Sat Nov 14 00:24:31 2020 +0100
Branches: asset-browser
https://developer.blender.org/rBf246a082c176dd911b5b7c3259d5b59f2194d895

Render asset previews on a separate thread on "Make Asset"

Object assets support this too now, plus the Asset Browser can dynamically
start showing the previews as they get finished. This makes for a quite nice
and interactive experience.

===================================================================

M	source/blender/editors/asset/asset_ops.c

===================================================================

diff --git a/source/blender/editors/asset/asset_ops.c b/source/blender/editors/asset/asset_ops.c
index ca60f752635..d10335bbf7e 100644
--- a/source/blender/editors/asset/asset_ops.c
+++ b/source/blender/editors/asset/asset_ops.c
@@ -62,7 +62,7 @@ static int asset_make_exec(bContext *C, wmOperator *op)
 #endif
   id->asset_data = BKE_asset_data_create();
 
-  UI_icon_render_id(C, NULL, id, true, false);
+  UI_icon_render_id(C, NULL, id, true, true);
   /* Store reference to the ID's preview. */
   /* XXX get rid of this? File read will be a hassle and no real need for it right now. */
   id->asset_data->preview = BKE_assetdata_preview_get_from_id(id->asset_data, id);



More information about the Bf-blender-cvs mailing list