Blender Git Loki

Git Commits -> Revision 0e3ad1c

Revision 0e3ad1c by Julian Eisel (asset-browser)
December 2, 2020, 17:24 (GMT)
Asset Browser: Various changes for previews

* Operator to set a custom data-block preview. Copies an image from a selected path to the ID's preview buffer.
* Object preview support (threaded). Creates a localized copy of the object, creates a temporary main, scene, view-layer and depsgraph, uses the "Frame Selected" logic to place a camera in front of the object, and renders that offscreen.
* Support defining (not necessarily rendering) icons in threads. Needed so the File Browser can expose file previews with an icon-id to scripts.
** For that, ported the C++ to be able to use scope based mutex locks.
** Also support ImBuf icons.
* Tag previews as "unfinished" while they render in a thread, for the File Browser to dynamically load previews as they get finished.
* Better handle cases where threaded preview generation is requested, but the ID type doesn't support it (fallback to single threaded).

Differential Revision: https://developer.blender.org/D9719

Commit Details:

Full Hash: 0e3ad1ccf4b1df1c6426e6c5a49c2bfda9d9ffcd
Parent Commit: 6a63877
Lines Changed: +1413, -981

1 Added Path:

/source/blender/blenkernel/intern/icons.cc (+1053, -0) (View)

1 Deleted Path:

/source/blender/blenkernel/intern/icons.c (+0, -919)

14 Modified Paths:

/source/blender/blenkernel/BKE_icons.h (+25, -1) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+3, -1) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+3, -0) (Diff)
/source/blender/editors/include/ED_util.h (+1, -0) (Diff)
/source/blender/editors/include/ED_view3d.h (+5, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+29, -16) (Diff)
/source/blender/editors/render/render_preview.c (+182, -8) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -0) (Diff)
/source/blender/editors/space_view3d/view3d_utils.c (+35, -0) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+3, -25) (Diff)
/source/blender/editors/util/ed_util.c (+68, -0) (Diff)
/source/blender/imbuf/intern/thumbs_blend.c (+1, -9) (Diff)
/source/blender/makesdna/DNA_ID.h (+3, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021