Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-01Font Preview: much better handling of i18n case.Bastien Montagne
We have to regenerate previews when we change language. But we also need to do it when translation is changed or added for a language, etc. Previously, we were storing one preview per language, which was also stuffing preview dir with (potentially) tens of PNGs per font file, if user plays with translations. Now we use a better system, which is storing an additional optional metadata in previews (some hexdigest), that Blender can use in addition to datetime to decide when to regenerate previews. This is only used (and needed) by font previews so far, but can easily be reused for other types of previews if needed.
2015-05-11Expose PreviewImage & custom icons to py API.Bastien Montagne
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-04-10Thumbnails: Add translations to font preview.Bastien Montagne
Not much to say, this is pretty straightforward. We just have to add current locale to thumbnails 'signature', so that previews get re-generated when we change locale... Tested with Japanese and French. Btw, I do not really understand why using BLF in ImBuf is badlevel... :/
2015-04-10Thumbnails: some reorganization, decouple actual path of file to preview ↵Bastien Montagne
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...
2015-04-08Font preview for file browserCampbell Barton
D1002 by @plasmasolutions, with own refactoring. Note, needed to do a bad-level call here (IMB -> BLF) Also can't use the BLF API directly because its not thread-safe. So keep the function isolated (blf_thumbs.c).
2015-04-08Cleanup: IMB/thumb namingCampbell Barton
2013-01-08style cleanupCampbell Barton
2012-08-26style cleanup: whitespaceCampbell Barton
2012-08-23style cleanupCampbell Barton
2012-03-18spelling cleanupCampbell Barton
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-05-02workaround [#27203] Crashes with some high-res image thumbnail generationCampbell Barton
skip generating thumbs for images over 100mb. also pass string lengths as size_t rather then int for path_util.c functions.
2011-02-27doxygen: blender/imbuf tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-12- resource leak in pointcache, opendir without closedir()Campbell Barton
- reading pointcache was using an incorrect, always NULL variable. - commented NDof code, was giving warnings and isnt used now.
2010-12-03- added GCC warning -Wstrict-prototypesCampbell Barton
- fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute.
2010-06-01passepartout overlay wasnt written into thumbnailsCampbell Barton
2010-05-30blend file thumbnailsCampbell Barton
- fix for blend file thumbnails not being immediately visible in an external file manager (was writing the thumb before the blend) - move overlay function from wm_files.c into thumbs_blend.c
2010-05-25blend file thumbnailingCampbell Barton
- uses same thumbnail system as image browser - blend files show thumbnails in ubuntu/gnome (freedesktop spec) - 128x128 images are embedded into the blend file header, a simple loader avoids reading the entire blend file to extract it when generating thumbnails in the file selector. When the image browser reads a directory it loads images and creates thumbnails, blend files embedded images are treated just like loading an image. - the thumbnail is created from the camera view in solid mode. (no camera == no thumbnal). - readfile/writefile.c: had to use the 'TEST' code name to save thumbnails, anything else would segfault older blender versions on load. (its not used elsewhere).
2010-05-07Merge image related changes from the render branch. This includes the imageBrecht Van Lommel
tile cache code in imbuf, but it is not hooked up to the render engine. Imbuf module: some small refactoring and removing a lot of unused or old code (about 6.5k lines). * Added a ImFileType struct with callbacks to make adding an file format type, or making changes to the API easier. * Move imbuf init/exit code into IMB_init()/IMB_exit() functions. * Increased mipmap levels from 10 to 20, you run into this limit already with a 2k image. * Removed hamx, amiga, anim5 format support. * Removed colormap saving, only simple colormap code now for reading tga. * Removed gen_dynlibtiff.py, editing this is almost as much work as just editing the code directly. * Functions removed that were only used for sequencer plugin API: IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp, IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace, IMB_dit0, IMB_dit2, IMB_cspace * Write metadata info into OpenEXR images. Can be viewed with the command line utility 'exrheader' For the image tile cache code, see this page: http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-03-10filebrowser:Andrea Weikert
* move own thread handling for thumbnails to WM_jobs * cleanup of thumbnail creation code * added function to kill the job, which actually allows thread to terminate gracefully vc9 projectfiles: * fixed some missing includes for release target!
2010-02-12correct fsf addressCampbell Barton
2009-03-032.5 filebrowserAndrea Weikert
bugfix: create directories to store thumbnails if they don't exist.
2007-09-05fix svn properties for line endingsAndrea Weikert
fix a few no newlines at end of file warnings
2007-09-02== imagebrowser ==Andrea Weikert
Initial commit of imagebrowser in trunk. BIG COMMIT! Main changes: * completely reworked imasel space * creation and storage of the preview images for materials, textures, world and lamp * thumbnails of images and movie files when browsing in the file system * loading previews from external .blend when linking or appending * thumbnail caching according to the Thumbnail Managing Standard: http://jens.triq.net/thumbnail-spec/ * for now just kept imasel access mostly as old imgbrowser (CTRL+F4, CTRL+F1) a bit hidden still. * filtering of file types (images, movies, .blend, py,...) * preliminary managing of bookmarks ('B' button to add, XKEY while bookmark active to delete) More detailed info which will be updated here: http://wiki.blender.org/index.php/User:Elubie/PreviewImageBrowser Places that need special review (and probably fixes): * BLO_blendhandle_get_previews in readblenentry * readfile.c: do_version and refactorings of do_library_append * UI integration TODO and known issues still: * Accented characters do not display correctly with international fonts * Crash was reported when browsing in directory with movie files * Bookmark management still needs some UI work (second scrollbar?), feedback here is welcome! Credits: Samir Bharadwaj (samirbharadwaj@yahoo.com) for the icon images. Many thanks to everyone who gave feedback and helped so far!