Blender Git Commit Log

Git Commits -> Revision a36c43f

Revision a36c43f by Bastien Montagne (master)
April 10, 2015, 13:34 (GMT)
Thumbnails: some reorganization, decouple actual path of file to preview from 'ref' one.

(Partial) backport from asset-experiments branch.

Reorganization: previously we could recompute name/path of thumb file two or three times,
now added lower-level internal functions that take those as parameters, so in most case
they are computed only once. Very minor optimization, but simple too.

Also, path of file to preview is now decoupled from path used to generate its URI
(and hence thumbnail path). In asset-experiments branch this is needed because
we also handle datablock previews in/as thumbnails (file_path is .blend path,
URI is .blend path + datablock 'path').

Here this will be needed for same kind of reason - once translated, font thumbnails
need to be re-generated when we change current language...

Commit Details:

Full Hash: a36c43fc8cabdaee69df69e9b0d2ee37fd7a8b12
Parent Commit: ec71077
Lines Changed: +80, -56

2 Modified Paths:

/source/blender/imbuf/IMB_thumbs.h (+1, -3) (Diff)
/source/blender/imbuf/intern/thumbs.c (+79, -53) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021