Blender Git Loki

Git Commits -> Revision 56d7b11

Revision 56d7b11 by Julian Eisel (asset-browser)
November 29, 2020, 23:36 (GMT)
Turn file previews into icons to allow access from BPY

That way we can expose an icon-id that scripts can use to reference the icon.
The Python API for file entries has the icon-id exposed.

To get this to work I had to make parts of the icon system thread safe. I added
a bunch of spin locks, but as a whole it's rather weak.

Part of T82977.

Commit Details:

Full Hash: 56d7b11c3fce87467db1df6a2900a20b86220c3e
Parent Commit: db03a2e
Lines Changed: +173, -35

8 Modified Paths:

/source/blender/blenkernel/BKE_icons.h (+15, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+88, -10) (Diff)
/source/blender/editors/interface/interface_icons.c (+17, -6) (Diff)
/source/blender/editors/space_file/filelist.c (+28, -17) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_draw.c (+2, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+20, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021