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
2017-03-24BLI_path_util: Add BLI_path_joinCampbell Barton
There weren't any convenient ways to join multiple paths in C that accounted for corner cases.
2017-03-23BLI_path_util: Add string versions of SEP, ALTSEPCampbell Barton
This allows for adding separators in string literals.
2017-03-22Cleanup: remove BLI_getlastdirCampbell Barton
Replace with BLI_path_name_at_index
2017-03-22BLI_path_util: add BLI_path_name_at_indexCampbell Barton
Utility to get a file/dir in the path by index, supporting negative indices to start from the end of the path. Without this it wasn't straightforward to get the a files parent directory name from a filepath.
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2017-01-16Cleanup: remove unused & unimplemented `BLI_newname`.Bastien Montagne
2015-10-17Cleanup: BLI_path commentsCampbell Barton
2015-10-17Cleanup: remove unused BLI_string_to_utf8Campbell Barton
2015-10-08BLI_path api, minor changes to CWD handlingCampbell Barton
- BLI_current_working_dir's return value must be checked, since it may fail. - BLI_current_working_dir now behaves like getcwd, where a too-small target will return failure. - avoid buffer overrun with BLI_path_cwd, by taking a maxlen arg.
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-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-05-05Prefer name 'program' over 'binary'Campbell Barton
binary-search is confusing!
2015-05-05BLI_path: add PATH search utility functionsCampbell Barton
2015-03-28Cleanup: redundant struct declarationsCampbell Barton
2015-02-13Make modifier_unique_name return whether modifier was renamed or notSergey Sharybin
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-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...
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-07-30BLI_path_utils: rename BLI_clean -> BLI_path_native_slashCampbell Barton
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-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-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-01-31Code cleanup: comments and warningsCampbell Barton
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-11-25Fix T37591: 'Extensions' option ignored for movies.Campbell Barton
2013-11-24Code Cleanup: replace shorts with ints for path code.Campbell Barton
2013-11-24Code Cleanup: whitespace / formattingCampbell Barton
2013-09-01Move GCC attributes into a centraized definesSergey Sharybin
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review!
2013-08-29default blend file name setting (untitled.blend) length check wasn't ↵Campbell Barton
correct, move to generic function BLI_ensure_filename().
2013-07-25add api function BLI_path_append to add to a path (and ensure a seperator), ↵Campbell Barton
replaces BLI_join_dirfile when the dir and the destimation were the same.
2013-06-18Fix for own mistake in r57555 :-(Jürgen Herrmann
Add include to autoexec.c instead of BLI_path_util.h Thanks Bastien Montagne for the hint.
2013-06-18Compile fix for r57554 missing include "BLI_string.h" in BLI_path_util.hJürgen Herrmann
2013-03-26style cleanup:Campbell Barton
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.
2013-03-24code cleanup: move doxy docs from headers into source. also replace ↵Campbell Barton
strncpy();str[len]=0 with BLI_strncpy() in BLI_stringdec().
2013-03-17code cleanup: add 'const' to headers to quiet msvc warnings, also remove ↵Campbell Barton
(char *) casts that aren't needed now we're on Python3.3
2013-03-05patch [#34103] path_util_split_dirstring.patch, ↵Campbell Barton
path_util_split_dirstring_2.patch, path_util_split_dirstring_3.patch from Lawrence D'Oliveiro (ldo) Get rid of BLI_splitdirstring, replace with calls to BLI_split_dirfile, BLI_split_dir_part and BLI_split_file_part as appropriate.
2013-03-05patch [#34103] path_util_cleanups.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) - Better argument name for BLI_cleanup_path and BLI_cleanup_file - remove redundant BLI_add_slash already done by BLI_cleanup_dir
2013-03-05patch [#34103]Campbell Barton
from Lawrence D'Oliveiro (ldo) More use of bool type, necessitating adding inclusion of BLI_utildefines.h, or moving it up in the inclusion order if it was already included, in various places - storage.c: make some variables only used in bli_builddir local to that - storage.c: BLI_file_descriptor_size should allow 0 as a valid file descriptor - path_util.c: make pointers to non-reentrant storage returned from folder routines const, necessitating making variables holding these returned pointers const elsewhere as well - path_util.c: BLI_string_to_utf8 closes iconv context in case of conversion error - blf_lang.c: fill_locales routine now has its own "languages" local variable to construct paths (was stealing internal storage belonging to BLI_get_folder before)
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-03-04patch [#34103] use booleans for extensions testing.Campbell Barton
bli_testextensie.patch - from Lawrence D'Oliveiro (ldo)
2012-12-24code cleanup: don't alloca zero size and remove paranoid NULL checks ↵Campbell Barton
(checked all uses and there not needed).
2012-12-13minor editsCampbell Barton
- add BLENDER_QUIT_FILE define. - use const for passing rcti's in widget drawing.
2012-12-12Holiday coding log :)Ton Roosendaal
Nice formatted version (pictures soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability Short list of main changes: - Transparent region option (over main region), added code to blend in/out such panels. - Min size window now 640 x 480 - Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake. - Macbook retina support, use command line --no-native-pixels to disable it - Timeline Marker label was drawing wrong - Trackpad and magic mouse: supports zoom (hold ctrl) - Fix for splash position: removed ghost function and made window size update after creation immediate - Fast undo buffer save now adds UI as well. Could be checked for regular file save even... Quit.blend and temp file saving use this now. - Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)" - New Userpref option "Keep Session" - this always saves quit.blend, and loads on start. This allows keeping UI and data without actual saves, until you actually save. When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header) - Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v). Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards. - User preferences (themes, keymaps, user settings) now can be saved as a separate file. Old option is called "Save Startup File" the new one "Save User Settings". To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still. - OSX: fixed bug that stopped giving mouse events outside window. This also fixes "Continuous Grab" for OSX. (error since 2009)
2012-09-06fix for crash in sequencer introduced with recent cache addition,Campbell Barton
- running undo with metastrips would crash immediately. - freeing a strip without a scene would crash (clipboard does this).
2012-09-04code cleanup: move file string defines into BLI_path_utils.h, ↵Campbell Barton
BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-08-29code cleanup: add utility function BLI_path_is_rel()Campbell Barton
2012-06-22fixed function name: BLI_rebase_path, reworked description, added enum ↵Gaia Clary
bli_rebase_state for defined return values