blender/release
Bastien Montagne d30f664c04 Expose PreviewImage & custom icons to py API.
This commit mainly:

* Exposes PreviewImage struct in RNA, including ways for user to set images data.
* Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image.
* Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system.
* Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons.

Note that loading image from files' thumbnails is done when needed (deferred loading), not
when defining the custom preview/icon.

WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level.
We do not want our UI to explode under hundreds of different flashy icons!

For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons)
and the example/templates featured with Blender.

Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29).

Differential Revision: https://developer.blender.org/D1255
2015-05-11 16:37:15 +02:00
..
bin Code cleanup: style/warnings 2014-02-28 11:04:15 +11:00
darwin Revert "OSX/cpack: add a dummy bg and ds_store for dmg" 2014-11-18 11:40:16 +01:00
datafiles Fix T44586: Viet language problem for Blender Interface 2015-05-02 17:02:08 +02:00
freedesktop patch to our desktop file from debian, German translation. 2012-04-16 09:56:12 +00:00
scripts Expose PreviewImage & custom icons to py API. 2015-05-11 16:37:15 +02:00
text Readme: tweaks to make it less hassle to edit 2015-03-13 00:34:27 +11:00
windows Fix T27642: Add version in .exe installer properties 2015-05-07 10:31:21 +02:00
environment-macosx shapekeys are now stored as customdata in editmode, so edit operations like subdivide work (mostly) correctly. tesselated faces now store correct normals in more situations. and added more missing files from the last merge, there may be more though. 2009-11-02 06:33:16 +00:00
environment-mswindows set svn end of lines to native 2011-05-09 08:15:38 +00:00
environment-unix shapekeys are now stored as customdata in editmode, so edit operations like subdivide work (mostly) correctly. tesselated faces now store correct normals in more situations. and added more missing files from the last merge, there may be more though. 2009-11-02 06:33:16 +00:00