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-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`.
2015-08-10UI drag&drop: make code able to free dragpoin if needed.Bastien Montagne
Only for image and strings for now. Needed for incomming filebrowser work.
2015-08-04SCons: Fix for really nasty bug with polluting configuration environmentSergey Sharybin
The issue was caused by the following construction: def = env['SOMETHING'] defs.append('SOMETHING_MORE') Since first assignment was actually referencing environment option it was totally polluted hawing weird and wonderful side effects on all other areas of Blender.
2015-07-14Fix T45424: Blender able to create folders with invalid characters at the ↵Bastien Montagne
end of the name. In fact, filebrowser was not making any checks for invalid file/dir names here! Added checks in the three places that should be protected: * Renaming. * Creating dirs. * Typing in filename field.
2015-07-11Use const for direntry stringsCampbell Barton
2015-07-11File Browser: Fix possible bug and some minor tweaksJulian Eisel
BLI_add_slash appended to a char *, a potential buffer overflow Also partially removed an assert, which failed after changing file format of a saved image. We need a better way to handle such cases.
2015-07-11File Browser: Keep file name after changing directoryJulian Eisel
Actually this was an intentional change in rBaeeb23efa28dc to prevent Blender from trying to open the old file from the new directory. Issue is that this is really bad for saving and basically breaks "Save As". Some more tweaks were needed to make it work like before, so now it keeps the name of the last selected file, but clears it when selecting a folder.
2015-07-10Fix T45405: Crash on opening a file (in filebrowser code)Julian Eisel
Quoting Bastien from IRC: "Filebrowser is a nest of bad surprises" -- indeed :S
2015-07-10Fix crash when appending from File BrowserJulian Eisel
Again own mistake in rBaeeb23efa28dc1
2015-07-10Fix T45398: Saving file from File Browser doesn't work if no file is selectedJulian Eisel
Own mistake in rBaeeb23efa28dc16e20
2015-07-09File Browser: (Re-)Allow selecting '..' parent entry for file navigationJulian Eisel
Selecting '..' entry was intentionally disabled in rB76b4fad6dbda1b10c, however, for file navigation this can be really useful. So this basically allows selecting '..' entry again, *if it is the only entry to select*. It won't be selected using box select, select all or when expanding selection.
2015-07-09File Browser: Improve usage of Enter-key to open files/directoriesJulian Eisel
From a user-POV this makes following changes: * Adds support for using the Enter-key to open directories * Updates the upper text-buttons for file and directory on selection * Last selected file/directory is opened now (in sync with upper text-buttons) * Changes text in open button to "Open Directory" if a directory is selected D1349, Reviewed by @mont29
2015-07-01Cleanup: Use bool instead of intJulian Eisel
2015-06-16Cleanup: styleCampbell Barton
2015-06-12BLI_linklist, avoid full list search for appendCampbell Barton
For areas that require append, store the last node, Previous behavior would too easily hide poorly performing code. Also avoid (prepend, reverse) where possible.
2015-06-12File Browser: Two more minor fixes for arrow keys selectionJulian Eisel
* Unset active file on opening/resetting file list * Accidentally placed NULL check in the middle of the function - not a big deal as it's highly unlikely that it fails (removed it but added assert)
2015-06-12File Browser: Ensure active file is unset if no file is selectedJulian Eisel
Otherwise arrow keys navigation might start from this file instead of the last/first file in the list.
2015-06-11Cleanup some style in new 'keyboard select' code.Bastien Montagne
Really hate onliner checks (if/else)...