Blender Git Loki

Git Commits -> Revision e1a345b

December 16, 2014, 13:41 (GMT)
Ensure previews are up to date when saving .blend file.

Previuosly, we would only write existing data - and big previews were
nearly never generated by default.

Now, if saving previews is enabled, `wm_file_write()` will ensure
all 'common' previewable datablocks do have up-to-date previews
(brushes remain TODO here for now, they have both a preview **and**
an icon_imbuf, sigh...).

This implied adding an 'immediate' non-job-background version of
`ED_preview_icon_job()`.

Note this does not include objects/groups/etc. It's not simple to generate
previews for those, will probably go for a user-launched py operator here...

Also, cleanup some debug prints!

Commit Details:

Full Hash: e1a345b3fe8f636c799ce449ce3c547949169c5a
Parent Commit: 3c738b3
Lines Changed: +76, -28

6 Modified Paths:

/source/blender/blenloader/intern/writefile.c (+0, -11) (Diff)
/source/blender/editors/include/ED_render.h (+1, -0) (Diff)
/source/blender/editors/include/UI_interface_icons.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_icons.c (+16, -14) (Diff)
/source/blender/editors/render/render_preview.c (+23, -2) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+35, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021