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
2016-05-08Cleanup: warningsCampbell Barton
2016-04-29Cleanup: warnings. spellingCampbell Barton
2016-04-26Fix Font filebrowser not showing thumbnails when those are enabled by ↵Bastien Montagne
default in userpref. Reported by Leon Cheung over IRC, thanks.
2016-03-22Fix incorrect strncat useCampbell Barton
2016-02-03Include why file operations fail in reportsCampbell Barton
2016-01-27Fix T47252: FileBrowser: buffer overflow with scripts defining too long ↵Bastien Montagne
'filter_glob' string. Fixed this with three changes: * filter_glob is now 255 char max (63 could be a bit limited in some rare cases). * IO templates now explicitely define max len of that property (such that scripters are aware of the limit). * ED_fileselect_set_params() is now safe regarding too long strings from a 'filter_glob' op property.
2016-01-21Cleanup: line length, indentationCampbell Barton
2016-01-10Some minor fixes from coverity reports.Bastien Montagne
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2015-12-29OS X: remove code for OS X <= 10.5, which is already not supported since 2 ↵Brecht Van Lommel
years.
2015-12-21Cleanup: warnings (msvc)Campbell Barton
Part of patch D1670 by @LazyDodo
2015-12-03Fix T46918: - Cleanup - FileBrowser - get rid of useless operators and ↵Bastien Montagne
update a bit keymap. Looks like FILE_OT_hidedot was actually the only one to remove here. Also, added more common parentdir/previousdir/nextdir shortcuts, and R for reload.
2015-11-28Cleanup: 'area' vs 'region'Julian Eisel
Apparently this is the result of some sloppiness during 2.5 project and since then it confused people who were trying to understand the area-region relation (myself included). Sorry if this causes merge conflicts for anyone, but at some point we really had to do it :/
2015-11-27Fix T46827: Appending Specific Groups Doesn't Work on Windows.Bastien Montagne
Issue was with datablocks which names would include '/', new filebrowser filelisting code would cleanup the entire filepath, hence giving invalid filename in this case. That 'path separator in ID names' bit us already in lib/datatype/datablock separating func, this is really stupid to allow that in something handled as a filepath imho, but well... Note: would have break the same under *nix with '\' char.
2015-11-05Cleanup: comments/styleCampbell Barton
2015-11-04File Selector, support filepath droppingGaia Clary
This adds support for dropping a filepath on an open file-selector to set that path.
2015-11-02Filebrowser: fix preview handling to make correct use of task scheduler.Bastien Montagne
We needed the 'background' feature here, since we never wait on those preview-generation tasks. Note that it also simplifies the code, and as usual testing is needed here on all possible platforms...
2015-10-15Fix crash pressing +/- in file-selectorCampbell Barton
Filenames over 128 chars would crash. Move BLI_newname into file_ops, this was only used in one place and isn't all that re-usable. Also remove special behavior for 4 digits.
2015-10-10Fix various compiler warnings.Brecht Van Lommel
2015-10-03Cleanup: styleCampbell Barton
2015-09-30Fix T46331: File open does not show thumbnails, when a filter_glob is ↵Bastien Montagne
provided by python scripts. No reason to exclude usual file-type 'guessing' for operator-filtered extensions... Safe for 2.76, should we need to merge more fixes.
2015-09-26Fix file browser not sorting file list when opened from editor menuJulian Eisel
2015-09-20Cleanup: warning, styleCampbell Barton
2015-09-19File Browser: Scroll view on normal selection tooJulian Eisel
Adjusts view after mouse/border selection if some selected items are out of view bounds. To get as much of the selection into view as possible, this adjusts view first for the last, then for the first element in the selection. Also, if region is pretty small, view adjustment is skipped, as otherwise the view is focused on the first element only, which isn't really useful IMHO. Maybe not so nice: Since we do two view alignment iterations, UI_view2d_curRect_validate, which is a rather big function *might* be called twice under certain circumstances (border select & total size of selected elements is exceeds view bounds). I think that's totally acceptable though.
2015-09-19File Browser: Scroll view with arrow keys navigationJulian Eisel
Adjusts view to display active file after using arrow keys to navigate through files.
2015-09-19Correction to previous commitJulian Eisel
2015-09-19Fix file key select using wrong file after border select in scrolled viewJulian Eisel
Basically, after border selecting, a wrong file was selected by using arrow keys if the screen was scrolled a bit vertically. Reason was that we didn't use correct view space coordinates but region space coordinates for measuring distance from mouse to first/last file in selection after border select.
2015-09-16Correction to previous commit.Bastien Montagne
Mostly styling, but also str_exec would often remain undefined...
2015-09-16Fix (unreported): Filebrowser key navigation entry did not change caption ↵Thomas Beck
correctly As of this release we're able to navigate with the keyboard in the filebrowsing area. The button caption is changing to an appropriate string whenever a new entry is selected. In @Severins original code a different method was used to determine if a directory was choosen or not, but this got lost while merging the filebrowser rework. Thanks to @mont29 for review!
2015-09-15Fix T46093: Thumbnails/previews of materials/textures not displaying in ↵Bastien Montagne
Blender filebrowser when only one thread is available. Using the global scheduler here is not a really good idea - `filelist_cache_previewf()` is not a short task that run once, but it's a loop that keeps cheking for work in a TODO queue. This means it won't quickly allow other tasks to start, so it should not be in the global scheduler. In fact, asynchronous tasks (that is, tasks that will live for quite a bit of time, and often sleep a lot) should never use global scheduler, they would steal computing resources from heavy-duty, short-time living ones - and possibly even completely stall threaded tasks (if all worker threads are executing long-life tasks...). We could probably even completely bypass the scheduler/task thing here (and directly use threads), but it does not have that much of an over-head, and still offers easy handling of threading stuff...
2015-09-13Cleanup: spellingCampbell Barton
2015-09-13Fix T46091: Video Sequencer rewrite *.png to _.pngBastien Montagne
Own mistake when adding filename safety check...
2015-09-11File Bookmarks: use volume label on Windows, and set name of recent entriesBastien Montagne
from system/user bookmarks' name if possible. Volume label on Windows was request from T46083, makes Blender more in line with 'common' filebrowsing on this OS. And now, we automatically set name of recent entries from the bookmarks, if path can be found there, more consistent too from user PoV.
2015-09-10Fix T46070: Content of folders with a .blend extension aren't listed until ↵Bastien Montagne
filtering is disabled. Own stupid mistake somewhere during filebrowser revamp...
2015-09-09Fix broken logic in new FileBrowser caching of entries.Bastien Montagne
We were still using main borwser's FileDirEntryArr to own memory of entries currently in cache. That was OK for common caching operation, but if was not released when clearing cache! Nothing dramatic, since that was cleared too, but less often, so e.g. by changing sorting options you could pile up more and more no-more-used entries there... Anyway, there is no reason to do that, much more sound and clean to keep everything cache-related in dedicated FileDirEntryCache struct. This means main borwser's FileDirEntryArr is now always expected to not store any actual entry! Note: this can probably be cleaned up a bit more, but would wait after 2.76 for this!
2015-09-02Cleanup: styleCampbell Barton
2015-08-25FileBrowser: Fix broken 'extend' behavior of walk select mode.Bastien Montagne
Glitch when I merged new walk code in asset-experiments most likely... Thanks to Dalai (dfelinto) who notified that on IRC.
2015-08-24Fix some issues from lates coverity scan.Bastien Montagne
Unlikely, but still valid.
2015-08-23Fix T45882: Sudden shutdown if the filebrowser is part of the area layout.Bastien Montagne
There is no guarantee in sfile's listener that FileList has already been created...
2015-08-23Cleanup: spelling/styleCampbell Barton
2015-08-23This commit makes it possible to select the sort mode whenever we invoke an ↵Thomas Beck
operator. It's needed especially for the menu entry "recover auto save" where you'd like to have the files sorted by date most of the time but it could be useful in other places too. There should be no functional change in other areas, I just added the missing parameter (FILE_SORT_ALPHA). Was a request from @sebastian_k at #BCon13, so at least one guy needs it ;) Reviewers: mont29 Reviewed By: mont29 Subscribers: sebastian_k Differential Revision: https://developer.blender.org/D1476
2015-08-22FileBrowser: Tweak display of size/time of entries.Bastien Montagne
We have no size for blenlib entries, nor do we have time for those and 'parent' entry. Thanks to Sergey for notifying this on IRC.
2015-08-21Fix T45658: linked library object loses particle settings.Bastien Montagne
Simply make ParticleSettings datablock linkable, see absolutely no reason why those were the only 'real data' ID type not linkable so far...
2015-08-20Minor cleanup (BLI_cleanup_dir already adds trailing slash, and correct a ↵Bastien Montagne
false-positive assert).
2015-08-20Cleanup: whitespaceCampbell Barton
2015-08-20FileBrowser: Fix some minor issue with fileentries creation.Bastien Montagne
An entry could already exist in misc cache, when creating it for block cache, leading to double-creation. Issue was not that serious (no memleak or so), but nasty still. Thanks to Severin for notifying the assert.
2015-08-20Fix 32bit builds... :/Bastien Montagne
2015-08-19Final 'FileBrowser First Stage' merge.Bastien Montagne
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser. From user perspective, it: * Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender! * Makes short/long display 'fixed' size (among four choices, like thumbnails mode). * Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories). * Consequently, adds datablocks types filtering. * Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared). * Generates thumbnails way faster. From code perspective, it: * Is ready for asset engine needs (on data structure level in filebrowser's listing). * Simplifies and makes 'generic' file listing much lighter. * Separates file listing in three different aspects: ** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct. ** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.). ** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one. * Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items. * Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs). * Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too). Revision: https://developer.blender.org/D1316 Thanks to Campbell & Sergey for the reviews. :)
2015-08-18Replace 'BLO_is_a_library' by 'BLO_library_path_explode'.Bastien Montagne
This new func will be fully used by upcomming code (it mostly adds the extraction of library item name as well as library file and ID group).
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.