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
2018-05-25Add number and memory size formatting throughout the UIDiego Gangl
This commit adds number formatting (thousands separator) to the baking panel. It also adds a new function to format memory sizes (KB/GB/etc) and applies it to the baking panel and scene stats. The new function is unit tested. Reviewers: Severin Tags: #user_interface Differential Revision: https://developer.blender.org/D1248
2018-04-05BLI_string: macros that de-duplicate sizeof argCampbell Barton
2016-03-23UI: multi word filtering in search menuCampbell Barton
D1080 by @rockets, with own improvements to tests
2015-07-14Cleanup: use ascii as suffix (as with utf8)Campbell Barton
2015-06-30Cleanup: move BLI_char_switch into BLI_stringCampbell Barton
2015-06-30Cleanup: use BLI_str prefix for BLI_replacestrNCampbell Barton
2015-06-30Cleanup: move BLI_timestr to BLI_timecodeCampbell Barton
2015-06-27Cleanup: all params of BLI_str partition funcs can be const...Bastien Montagne
2015-06-27Extend `BLI_str_partition_ex`: add possibility to define a right limit to ↵Bastien Montagne
the string. Now you can define `end` pointer as right limit of the string (allows to easily search in substring, especially useful when searching from right).
2015-04-21BLI_string: add BLI_snprintf_rlenCampbell Barton
use when the length of the destination string is needed.
2015-01-10Fix building with very strict flags, use size_t rather than int for string ↵Bastien Montagne
length. Reported on bf-committers.
2015-01-09BLI_string: BLI_str_ends_with -> BLI_str_endswithCampbell Barton
Loosely following Python str convention.
2015-01-09Gooseberry animation request: Paste flipped pose in actionAntony Riakiotakis
and graph editor. This was a tricky commit that was not so straightforward to make work. The information for bones is not easy to come by in the animation curves, however we do have some string manipulation tricks to make it happen. Testing in gooseberry worked for the rigs there, commiting to master now
2015-01-06cleanup: warningsCampbell Barton
2015-01-03Add some BLI helpers needed by asset branch.Bastien Montagne
`BLI_strncpy_ensure_pad()` is also useful with current master code. The two others (`BLI_strcmp_ignore_pad()` and `BLI_filelist_duplicate()`) are only used in asset branch currently, but think they could be useful in other places too, and simplifies handling of asset branch & future patch review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D965
2014-07-17Add thousands separators to scene stats (D646)Campbell Barton
by januz with own modifications
2014-07-08BLI_string, dont pass unicode to ascii BLI_str_partition functionsCampbell Barton
2014-07-04Add (r)partition funcs to BLI_string, to get left-most/right-most first ↵Bastien Montagne
occurence of delimiters. Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs. Reviewed by Campbell Barton, many thanks!
2014-06-17BLI: Add two helpers to search a given string in an array of strings.Bastien Montagne
2014-05-20Fix T40224: Crash moving objects to another layerCampbell Barton
Incorrect nonnull attribute was optimizing out NULL check.
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-06use gcc malloc attribute for low level allocation functions, prevents gcc ↵Campbell Barton
from checking if resulting pointers alias existing pointers, also use sentinel attribute for uiButGetStrInfo so incorrect usage gives a warning.
2013-07-27code cleanup: remove redundant NULL checks and avoid writing to the source ↵Campbell Barton
string. also rename BLI_replacestr() -> BLI_replacestrN() since it returns an allocated buffer.
2013-07-15debug option (off by default), for BLI_string to help find incorrect sizes ↵Campbell Barton
being passed in (enable in source files only)
2013-06-16add BLI_strcpy_rlen, replace strcat, which was used in misleading way.Campbell Barton
2013-03-29misc minor edits.Campbell Barton
- pass string size to BLI_timestr() to avoid possible buffer overrun. - quiet warning for mingw. - include guards for windows utf conversion funcs. - fix for mistage in edge-angle-selection check. - some style cleanup.
2013-03-14add BLI_strncpy_rlen(), a clone of BLI_strncpy() that returns the number of ↵Campbell Barton
bytes copied. also move doxy comments for BLI_string.h into the C file.
2013-03-04fix [#34490] Copy and paste floating point number fields losses precisionCampbell Barton
- copy now gets up to 6 decimal places - copy and UI float button editing now strip zeros: 1.000 -> 1.0
2012-10-31add assert if zero is passed to string copy functions, would copy into first ↵Campbell Barton
byte anyway.
2012-10-27change BLI_strlen_range_utf8 to the more conventional BLI_strnlen_utf8Campbell Barton
2012-10-10use __restrict for string functions args so the compiler can assume they ↵Campbell Barton
dont overlap. also avoid comparing int/size_t in for loops.
2012-09-16use the format attribute in more places, disable X11 options when building ↵Campbell Barton
with GHOST_SDL
2012-08-26Some FFmpeg changesSergey Sharybin
- Make FFmpeg initialization called from creator, not from functions which requires FFmpeg. Makes it easier to follow when initialization should happen. - Enable DNxHD codec. It was commented a while ago due to some strange behavior on some platforms. Re-tested it on Linux and Windows and it seemd to be working quite nice. Would let it be tested further, if it wouldn't be stable enough, easy to comment it again. - Make non-error messages from writeffmpeg.c printed only if ffmpeg debug argument was passed to blender. Reduces console pollution with messages which are not useful for general troubleshooting. Error messages would still be printed to the console. - Show FFmpeg error message when video stream failed to allocate. makes it easier to understand what exactly is wrong from Blender interface, no need to restart blender with FFmpeg debug flag and check for console messages. Used custom log callback for this which stores last error message in static variable. This is not thread safe, but with current design FFmpeg routines could not be called form several threads anyway, so think it's fine solution/
2012-07-10rename BLI_getQuotedStr --> BLI_str_quoted_substrN to make it more clear its ↵Campbell Barton
doing an allocation.
2012-07-08use gcc attrubutes to warn on unused return values and arguments which ↵Campbell Barton
shouldnt be NULL. also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either.
2012-05-13code cleanup: header cleanup and remove some duplicate defines.Campbell Barton
2012-03-02style cleanupCampbell Barton
- spelling - turns out we had tessellation spelt wrong all over. - use \directive for doxy (not @directive) - remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-01Spelling CleanupCampbell Barton
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2011-10-29replace BLI_strtok_r from r41337 with lighter method that doesnt alloc for ↵Campbell Barton
template_list
2011-10-28BLI_string: Adding the BLI_strtok_r function, which mimics stdlib strtok_r ↵Bastien Montagne
(unavailable on some systems). It allows to iterate over a string, returning an new element each time, using a char as separator. See BLI_String.h's comments for more info and an example. Needed by the UI template list patch following!
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-20- add BLI_string_utf8.h for unicode functions.Campbell Barton
- move font.c unicode functions into string_utf8.c and rename to fit with other BLI_string funcs.
2011-10-16utf8 editing for UI text input, this means backspace, delete, arrow keys ↵Campbell Barton
properly move the cursor with multi-byte chars. Note that this is only for the interface, text editor and python console still miss this feature.
2011-09-15fix [#28658] python can assign non utf8 and crash because of string lenth ↵Campbell Barton
limits. add BLI_strncpy_utf8() which which ensures there are no partially copied UTF8 characters, limited by the buffer size.
2011-09-15move utf8 string.c functions into their own file, also add python tip for ↵Campbell Barton
printing operators.
2011-08-23BLI_strescape for a basic, python like string escaping, currently only use ↵Campbell Barton
for drag and drop ID's into the console but should eventually be used for the animsys too.
2011-05-27remove BLI_streq() since it was hardly used, also replace string search with ↵Campbell Barton
BLI_findstring().
2011-05-26Fix #27445: various operators missing with some non-english system languages.Brecht Van Lommel
In the case of this bug e.g. material.new became MATERiAL_OT_new, due to different capitalization of "i" in Turkish. Fixed by not using the locale dependent toupper/tolower functions.
2011-03-25use size_t rather then int for passing lengths to string functions since ↵Campbell Barton
this is what guarded-malloc uses as well as stdlib.h.