Blender Git Loki

Git Commits -> Revision 9363132

Revision 9363132 by Julian Eisel (master)
December 15, 2020, 16:03 (GMT)
Asset System: Various changes to previews in preparation for Asset Browser

* 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 `icons.c` to C++, to be able to use scope based mutex locks
(cleaner & safer code). Had to do some cleanups and minor refactoring for
that.
* Added support for ImBuf icons, as a decent way for icons to hold the file
preview buffers.
* 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). This is for general
sanity of the code (as in, safety and cleanness)
* Enabled asset notifier for custom preview loading operator, was just disabled
because `NC_ASSET` wasn't defined in master yet.

Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1
project milestone on developer.blender.org.

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

Reviewed by: Bastien Montagne, Brecht Van Lommel

Commit Details:

Full Hash: 9363132c8601ebca6d89168e09bb10f81d6cb03a
Parent Commit: c25e031
Lines Changed: +1150, -975

1 Added Path:

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

1 Deleted Path:

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

8 Modified Paths:

/source/blender/blenkernel/BKE_icons.h (+24, -1) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -1) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+4, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+29, -16) (Diff)
/source/blender/editors/render/render_preview.c (+36, -1) (Diff)
/source/blender/editors/util/ed_util.c (+1, -1) (Diff)
/source/blender/imbuf/intern/thumbs_blend.c (+1, -9) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021