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-07-14BLI_path_utils: fix/enhance BLI_filename_make_safe(), add BLI_path_make_safe().Bastien Montagne
BLI_filename_make_safe had several issues: * Would replace all dots ('.'), not a great idea since it would break extensions. * Was not checking for 'control' ASCII chars (though unlikely, better to be safe here). * Win32 only: was not checking for forbidden names (con, aux, ltp0, com0, etc.). New BLI_path_make_safe() simply checks each path's item with BLI_filename_make_safe().
2015-06-30Cleanup: move BLI_char_switch into BLI_stringCampbell Barton
2015-06-06CleanupCampbell Barton
2015-06-04New "use placeholders" feature of the sequencer did not detect correctAntony Riakiotakis
filenames. Added BLI_path utility functions to decompose a path name and extract the frame number. It should be useful in autocollapse feature as well
2015-06-04Fix buffer overrun searching program path on win32Campbell Barton
2015-06-02Simplify Win32 extension checkCampbell Barton
2015-05-05Prefer name 'program' over 'binary'Campbell Barton
binary-search is confusing!
2015-05-05BLI_path: add PATH search utility functionsCampbell Barton
2015-04-08Fix T44235: UNC Path Fails in open.Bastien Montagne
Here again, stat on '\\MYSERVER\foo\..' does not work... Anyway, we can handle this in a much much simpler way using BLI_access and BLI_parent_dir...
2015-02-13Make modifier_unique_name return whether modifier was renamed or notSergey Sharybin
2015-02-06cleanup: styleCampbell Barton
2015-01-26Cleanup: current/parent paths: add helpers in BLI_path_utils.Bastien Montagne
Also, avoid calling ugly strcmp with '.' or '..', making direct char checks is much cheaper here!
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-16Fix compilation error with strict compiler rulesSergey Sharybin
2015-01-16Fix T43275: Crash on Render when using 'save buffer' and render layer name ↵Bastien Montagne
contains a '/' Added a new BLI_path_utils func, `BLI_filename_make_safe()`, which for now simply replaces unsafe chars for paths (like '\' or '/') by an underscore...
2015-01-04Partial fix for T43113: Filebrowser: Empty folders do not contain go back arrow.Bastien Montagne
Do not allow going into un-readable directories at all. Note we might want to reflect that 'state' in UI for users too, but that will be for later. Also, not quite sure this fix the windows case, will have to start my VM... :/
2014-12-28Fix buffer overrun calculating unique namesCampbell Barton
2014-12-01Cleanup: hopefully last int->bool one in this area!Bastien Montagne
2014-12-01Fix T42588: Absolute paths not cleaned on win32Campbell Barton
Making paths absolute would leave in "\..\" part on windows.
2014-11-30Cleanup: warnings & spaceCampbell Barton
2014-11-23Refactor: BLI_path_util (split out app directory access)Campbell Barton
This module is intended for path manipulation functions but had utility functions added to access various directories.
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-09-22Fix T41891: Alt+S can't save imageCampbell Barton
win32 BLI_path_abs expanded empty strings into "C:\\", which made BLI_exists succeed (quite confusing). Now match behavior on *nix.
2014-08-01OSX/scons: Change Blender bundle datastructures + referennces to match the ↵Jens Verwiebe
upcoming codesigning needs - i used deprecated rules up to now which will break in OSX > 10.9.5 and 10.10 > dp4 - todo: adapt cmake due it will break with this commit
2014-07-30BLI_path_utils: rename BLI_clean -> BLI_path_native_slashCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-24Fix compilation on OSX after own rB414c70435dcd...Bastien Montagne
Sigh, why can't all unix have same includes? :/
2014-06-23T39690: Modifications to Blender's 'temp dir' system.Bastien Montagne
Current temporary data of Blender suffers one major issue - default 'temp' dir on Windows is never automatically cleaned up, and can end being quite big when used by Blender, especially when we have to store per-process data (using getpid() in file names). To address this, this patch: * Divides tempdir paths in two, one for 'base' temp dir (the same as previous unique tempdir path), the other is a mkdtemp-generated sub-dir, specific to each Blender instance. * Only uses base tempdir when we need some shallow persistance accross Blender sessions - and we always reuse the same filename (quit.blend...) or generate small file (crash reports...). * Uses temp sub-dir for heavy files like pointcache or renderEXRs (Save Buffer option). * Erases temp sub-dir on quit or crash. To get this working it also adds a working 'recursive delete' to BLI_delete() under Windows. Note that, as in current code, the 'recover render result' hack-feature that was possible with SaveBuffer option is still removed. A real renderresult cache feature will be added soon, though. Reviewers: campbellbarton, brecht, sergey Reviewed By: campbellbarton, sergey CC: sergey Differential Revision: https://developer.blender.org/D531
2014-05-18Comment unused BLI_rebase_pathCampbell Barton
2014-05-18Fix BLI_cleanup_path: '.' at the start of a pathCampbell Barton
On windows "." was replaced with the root directory. On other systems any path starting with a '.' would be replaced with "/" This was added for the file selector only, so better handle this in the file selector (though it looks not to be needed).
2014-05-14Code cleanup: doxy commentsCampbell Barton
2014-05-07Code cleanup: spelling/indentationCampbell Barton
2014-05-03BLI_path_suffix() - new path util functon to add a suffix to a filepath ↵Dalai Felinto
(before the extension) Revision: D465 Reviewd by Campbell Barton
2014-05-01Include removal gave problems with windows, ifdef some back in for windows onlyCampbell Barton
2014-05-01Revert "Fix msvc 2013 compiler errors after the ingenious cleanup in ↵Campbell Barton
4ca67869cc7a." This reverts commit a47a4ef82f37428d391cc14a30fa611d6714e71d.
2014-05-01Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc7a.Thomas Dinges
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-26Code cleanup: use 'const' for arrays (blenlib)Campbell Barton
2014-04-21Basic support for UNC paths on WindowsAndrea Weikert
Differential Revision: https://developer.blender.org/D298 Allows users on Windows to enter UNC paths in the filebrowser and to link to .blend files on a UNC path. Functionality is limited still, we can't browse the network yet and have no support to check user rights so far. What works: - enter an UNC path in the file browser manually or via copy/paste - navigation within the UNC share subfolders - link to a file on a UNC share What does not (yet) work: - browse the network for computers and shares - browse to a folder that requires entering user credentials Contributors: Rob McKay - original patch Campbell Barton - style fixes Reviewers: Campbell Barton, Brecht van Lommel
2014-03-22Warning cleanup:Antony Riakiotakis
* Comparison in utf detection code always failed * Cast to integer to silence grumpy 64bit gcc
2014-01-30Code cleanup: remove BLI_has_parentCampbell Barton
2014-01-30Code cleanup: add BLI_testextensie_n, replacing multuple calls to ↵Campbell Barton
BLI_testextensie also use attributes for BLI path functions
2013-12-22Style Cleanup: remove preprocessor indentation (updated wiki style guide too)Campbell Barton
2013-11-25fix for regression with own recent commitCampbell Barton
2013-11-25Fix T37591: 'Extensions' option ignored for movies.Campbell Barton
2013-11-24Code Cleanup: replace shorts with ints for path code.Campbell Barton
2013-09-23Fix related to #36319: restore SDL_VIDEODRIVER=dummy environment variable, itBrecht Van Lommel
seems that somehow not having this is causing keyboard events to be caught by SDL. This was removed because it broke addons that could use SDL, now set the environment variable only temporary during SDL initialization. This may have been causing issues with keyboard events getting missed in the game engine, but I couldn't confirm the issue here.
2013-09-02Some function didn't match their declarationSergey Sharybin
2013-08-29default blend file name setting (untitled.blend) length check wasn't ↵Campbell Barton
correct, move to generic function BLI_ensure_filename().
2013-08-27Get rid of madness about fnmatch: BLI_fnmatch did not do the OS checks, they ↵Bastien Montagne
had to be done in every file using fnmatch (autoexec.c did not, wonder how it could work under unix???). Thanks to Brecht for noting this!