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-02-03Fix BLI_rename returned success w/ missing source pathCampbell Barton
2015-12-28Some fixes from coverity (only one really nasty, in paint_proj).Bastien Montagne
2015-11-16Add missing newlines for debug printsCampbell Barton
2015-09-04Quiet warningsJulian Eisel
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
2015-08-24BLI_fileops: Some fixes and cleanup.Bastien Montagne
* Fix BLI_file_touch, used to add one dummy byte ((unsigned char)EOF) to empty files! * Get rid of static global temp string in WIN32 area (very bad, and useless!). * Get rid of paranoid NULL checks in WIN32's BLI_gzopen(). * Add non-relative filename asserts to WIN32 file operations too. * ifdef-out BLI_move and BLI_create_symlink, unused (and the later is not even implemented for windows). Partly based on patch and points raised by Jason Wilkins (jwilkins) in T32870, thanks!
2015-08-20Hopefully fix mingw building after filebrowser rewrite.Bastien Montagne
The mystery here is, how MSVC could not break on such error? :(
2015-07-15Fix own stupid error in yesterday's refactor of recursive dir creation.Bastien Montagne
Missed adding return value in one place. Thanks a lot to Thomas Szepe for reporting the issue and finding the solution! Question remains: how could MSVC allow such a code to compile in some cases (own win64 + scons buildbot win32 were OK with that it seems!). Crappy compiler, not comming to the rescue of stupid dev...
2015-07-14BLI_fileops: Make BLI_dir_create_recursive() return success/error status.Bastien Montagne
Handy to know directly whether a file creation succeeded or not. Also, made a few more changes in this func, and harmonized a bit win32/*nix versions.
2015-07-12Remove redundant string copyCampbell Barton
2015-07-12Missed essential part in previous commit.Bastien Montagne
Or how to epic fail a fix when working on two different systems. Or how to increase your commit rate.
2015-07-12Fix T45375: Cant clear temp fluid cache after closing Blender (Windows).Bastien Montagne
There was two different issues here actually: * Own (very high) stupidity only gave 8 chars to file name (sic). * list dir returns dirpaths without a trailing slahs, but expects them to have it it seems. :|
2015-06-18Assert when relative paths are passed to IO opsCampbell Barton
This is typically an error (& hangs a few seconds on win32), best catch early.
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-03Cleanup: rename 'filelist' BLI funcs to consistent naming.Bastien Montagne
Also, add an optional callback to `BLI_filelist_free()` to allow freein void poin if needed (consistency with `BLI_filelist_duplicate()`...).
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-09-04Write Compressed blend files directlyCampbell Barton
Writing compressed files would write the uncompressed blend, then re-compress on-disk. Use a wrapper for open/write/close commands
2014-06-26Code cleanup: casts, dead assignment & arg order.Campbell Barton
2014-06-24Fix compilation on OSX after own rB414c70435dcd...Bastien Montagne
Sigh, why can't all unix have same includes? :/
2014-06-23Fix own typo in temp_data patch, (windows-only)Bastien Montagne
Don't know when this sneaked in, I did wrote that part of the patch on win VM with MSVC2013... :/ Note: letting asside warnings for now, then should not prevent building anyway.
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-26Fix for BLI_delete failing on files containing quotesCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-22BLI_open: check returned value for `-1` instead of `< 0`Campbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-15Code cleanup: use r_ prefix for return argsCampbell Barton
2013-08-28remove callback BLI_localErrorCallBack from scanfill, was here for years and ↵Campbell Barton
only ever wrapped printf.
2013-07-27code cleanup: remove unused codeCampbell Barton
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-07-16fix for checking char arrays against NULL, instead check their first ↵Campbell Barton
character. also remove some dead code (return directly after return).
2013-06-25Fix #35824: finding missing files not working correct for filepaths with specialBrecht Van Lommel
characters on Windows. Replaced some uses of stat() by BLI_stat() to properly handle such filepaths.
2013-05-28move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)Campbell Barton
remove MEM_sys_types.h which was a duplicate.
2013-05-13fix for building with mingwCampbell Barton
2013-05-01Fix #35081: opening .blend files with chinese characters not working. ForBrecht Van Lommel
compressed files we were not passing the full wide char path to zlib, so not all file names worked. Now we use gzopen_w available in new zlib versions. Patch by Tamito Kajiyama, I added an extra check for the zlib version so it keeps compiling with older versions for now. For platform maintainers: Part of this commit are zlib 1.2.8 libraries for windows 32 bit. We still need update libraries for windows 64 bit and mingw. There's a readme.txt and build.bat included with instructions on how to build.
2013-04-01code cleanup: includesCampbell Barton
2013-03-29code cleanup: quiet warnings building with mingw.Campbell Barton
2013-03-22code cleanup: use NULL rather then 0 for pointers, and make vars static ↵Campbell Barton
where possible. also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-13Fix #34551: blender crash rendering with save buffers.Brecht Van Lommel
Problem was the new usage of access() on Windows, this doesn't accept X_OK. Also wrapped _waccess so that UTF-8 paths work.
2013-03-09comment unused BLI_move() function, also fixed error where it would delete ↵Campbell Barton
the file even if renaming failed. - found when testing recursive_operation().
2013-03-09patch [#34103] fileops_recursive_operation.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) Fix potential memory leaks in recursive_operation while simplifying cleanup logic.
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
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] fileops_file_is_writable.patch, fileops_file_is_writable_2.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) More efficient implementation of BLI_file_is_writable using access(2) instead of actually opening file.
2013-03-05patch [#34103] fileops_1.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) Add comments and use of bool type in fileops.c
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-02-11style cleanup: also some typosCampbell Barton
2012-12-15move pbvh into BKE, it used many BKE bad level includes.Campbell Barton
now blenlib/BLI doesn't depend on any blenkern/BKE functions, there are still some bad level includes but these are only to access G.background and the blender version define.
2012-10-07Fix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in ↵Sv. Lockal
wm_window_title.
2012-10-06Color Management: fixed loading configuration from non-ascii pathsSergey Sharybin
Used the same hack as BLI gzip is using -- calculate short path and send it to OCIO library.
2012-09-27Fix compilation issue on MinGW, thanks to Sergey for the fixAntony Riakiotakis