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
2019-03-20Cleanup: styleCampbell Barton
2019-03-20Cleanup: return early in BLI_path_frame_getSybren A. Stüvel
Instead of making the entire body of the function conditional, it now returns early, unindenting the entire function and preventing the reader from searching for a non-existent `else` clause. No semantic changes.
2019-03-20Fix BLI_path_frame_stripSybren A. Stüvel
The `BLI_path_frame_strip` function was completely broken, unless the number of digits in the sequence number was the same as the length of the extension. In other words, it would work fine for `file.0001.abc` (4 digit `0001` and 4 char `.abc`), but other combinations would truncate to the shortest (`file.001.abc` would become `file.###.ab` and `file.00001.a` would become `file.##.a`). The dependency between the sequence number and the file extension is now removed. The behaviour has changed a little bit in the case where there are no numbers in the filename. Previously, `path="filename.abc"` would result in `path="filename.abc"` and `ext=""`, but now it results in `path="filename"` and `ext=".abc"`. This way `ext` always contains the extension, and the behaviour is consistent regardless of whether there were any numbers found. Furthermore, I've removed the `bool set_frame_char` parameter, because it was unclear, probably also buggy, and most importantly, never used. I've also added a unit test for the `BLI_path_frame_strip` function.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-11Cleanup: comment indentation & spellingCampbell Barton
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-15Cleanup: comment line length (blenlib)Campbell Barton
Prevents clang-format wrapping text before comments.
2018-12-24Fix/cleanup another bunch of UI messages issues.Bastien Montagne
Also (mostly in comments): behaviour -> behavior (we use American English).
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-12Docs: correct doxy commentsCampbell Barton
2018-10-18Cleanup: Remove more #if 0 blocksJacques Lucke
Continuation of https://developer.blender.org/D3802 Reviewers: brecht Differential Revision: https://developer.blender.org/D3808
2018-10-11Merge branch 'master' into blender2.8Campbell Barton
2018-10-11Fix incorrect strncpy useCampbell Barton
Didn't ensure null terminated.
2018-09-18Application Templates: make templates more prominent in the UI.Brecht Van Lommel
The goal here is to make app templates usable for default templates that we can ship with Blender. These only have a custom startup.blend currently and so are quite limited compared to app templates that fully customize Blender. But still it seems like the same kind of concept where we should be sharing the code and UI. It is useful to be able to save a startup.blend per template, and I can imagine some scripting being useful in the future as well. Changes made: * File > New and Ctrl+N now list the templates, replacing a separate Application Templates menu that was not as easy to discover. * File menu now shows name of active template above Save Startup File and Load Factory Settings to indicate these are saved/loaded per template. * The "Default" template was renamed to "General". * Workspaces can now be added from any of the template startup.blend files when clicking the (+) button in the topbar. * User preferences are now fully shared between app templates, unless the template includes a custom userpref.blend. I think this will be useful in general, not all app templates need their own keymaps for example. * Previously Save User Preferences would save the current app template and then Blender would start using that template by default. I've disabled this, to me it seems it was unintentional, or at least not clear at all that saving user preferences also makes the current Differential Revision: https://developer.blender.org/D3690
2018-09-05Cleanup: styleCampbell Barton
2018-09-05Fix T54152: --env-system-scripts fails on win32Ray Molenkamp
2018-06-18Fix T55503: File browser filter not working correctly.Bastien Montagne
There were two issues here, introduced by rB66aa4af836: * Forgot to change length of some filter_glob var deep in filebrowser code. * Truncating filter_glob in general can be dangerous, generating unexpected patterns. Last point was the root of the issue here, truncating to 63 chars string left last group as 'match everything' `*` pattern. To fix that to some extent, added a new BLI_path_extension_glob_validate helper to BLI_path_util, which ensures we do not have last wildcards-only group in our pattern, when there are more than one group.
2018-06-17Cleanup: trailing space for BLICampbell Barton
2018-06-17Cleanup: remove unused BLI_rebase_pathCampbell Barton
2018-06-17Cleanup: BLI path extension APICampbell Barton
Use BLI_path_extension_* prefix.
2018-06-17BLI_path: add string size debug defineCampbell Barton
Off by default, only for debugging.
2018-06-11path_util: avoid overflow w/ strtoll useCampbell Barton
Also style cleanup.
2018-06-11Fix T55140: opened image doesn't show up in movie clip editorPhilipp Oeser
atoi usage in BLI_stringdec could overflow, use strtoll instead and check valid range with INT_MIN and INT_MAX Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3452
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2017-10-28Cleanup: use uint type in BLICampbell Barton
2017-05-27Remove MinGW supportAaron Carlisle
The Issue ======= For a long time now MinGW has been unsupported and unmaintained and at this point, it looks like something that we should just leave behind and move on. Why Remove ========== One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based. However, now that this is no longer true we have basically stopped updating the need CMake files. Along with the CMake files, there are several patches to the extern libs needed to make this work. For example, see: https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch If we wanted to keep MinGW then we would need to make more custom patches to the external libs and this is not something our platform maintainers are willing to do. For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3 Fixes T51301 Differential Revision: https://developer.blender.org/D2648
2017-04-17BLI: make BLI_make_existing_file() return true on success, and false on ↵Bastien Montagne
failure...
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-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).
2016-10-25API: Fix LinksAaron Carlisle
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out` Reviewers: mont29 Tags: #bf_blender, #python, #infrastructure:_websites Differential Revision: https://developer.blender.org/D2297
2016-06-27Docs: arg namesCampbell Barton
2016-05-03Cleanup: no need to cast for pointer comparisonCampbell Barton
2015-11-27Fix (unreported) broken BLI_join_dirfile() in some cases on Windows.Bastien Montagne
That function was epic failing in case trying to join '//' and 'foo.blend', would give '//\foo.blend'... Now check for both SEP and ALTSEP!
2015-10-18Fix T46531: Cannot use % in filenames.Bastien Montagne
Same case as with space char really, one should not use those special chars in filenames, but they are globally supported by all current FS/OS, so no real reason to enforce that behvior on users here. To be backported to 'a' release.
2015-10-17Cleanup: warningsCampbell Barton
- remove NULL checks for args already set as ATTR_NONNULL. - double promotion.
2015-10-17Cleanup: BLI_path commentsCampbell Barton
2015-10-17Cleanup: remove unused BLI_string_to_utf8Campbell Barton
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-15Fix T45900: Allow again white spaces in file names.Bastien Montagne
Should probably be added to 'a' release, should we do one...
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-10-07Cleanup: spellingCampbell Barton
2015-09-09Fix T46056: User Preferences-> install from File freezes Blender.Bastien Montagne
Own stupid error in recent fix for buffer overflow in `BLI_testextensie_glob()`... Also found & fixed another potential buffer overflow in this func.
2015-09-07Fix beautiful textbook case of string overflow in `BLI_testextensie_glob`...Bastien Montagne
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().