Blender Git Loki

Git Commits -> Revision 51efe80

Revision 51efe80 by Julian Eisel (asset-browser)
November 24, 2020, 20:07 (GMT)
Support custom preview images for assets

Assets types that already support previews (objects, collections, images,
textures, materials, brushes, lights, worlds, scenes and screens) now support
custom previews too.
To assign a preview, the Asset Browser sidebar shows a "Load Custom Preview"
button. It opens a File Browser to select an image. Once an image is selected,
it overrides whatever preview was previously set. No reference to the image is
created, it basically copies the image to the data-block preview.

The button looks a bit out-of-place currently, that will be improved later.

Commit Details:

Full Hash: 51efe8020e5aa9b21ab1e78c9bee49072794ee30
Parent Commit: 83c3d93
Lines Changed: +143, -31

8 Modified Paths:

/release/scripts/startup/bl_ui/space_filebrowser.py (+5, -3) (Diff)
/source/blender/blenkernel/BKE_icons.h (+4, -1) (Diff)
/source/blender/blenkernel/intern/icons.c (+53, -25) (Diff)
/source/blender/editors/include/ED_util.h (+1, -0) (Diff)
/source/blender/editors/render/render_preview.c (+1, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -0) (Diff)
/source/blender/editors/space_file/space_file.c (+10, -1) (Diff)
/source/blender/editors/util/ed_util.c (+68, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021