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-10-28Cleanup: use uint type in BLICampbell Barton
2017-06-19Cleanup: doxygen commentsCampbell Barton
Also remove duplicate & mismatching comments from grease-pencil header. Keep comments close to implementation to avoid getting out of sync.
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-01-20Fix own mistake in rB051526da6279, confusing off_t with ptrdiff_t.Bastien Montagne
2017-01-20Cleanup/fix some BLI_string_utf8 not using size_t/off_t as expected.Bastien Montagne
2017-01-03Fix implicit size_t to int conversion.Bastien Montagne
Seems like it was erroring on some buildbots...
2017-01-01Fix (unreported) fully broken 'sanitize utf-8' helper.Bastien Montagne
That code was a joke, letting some invalid utf8 bytes pass, returning wrong offset for some invalid sequences, not to mention length and pointer easily going out of sync, NULL final byte being 'forgotten' by memcpy, etc. etc. The miracle here is that we could survive using this for so long! Probably because we do not use utf-8 sanitizing enough in Blender, actually... :/
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-05-20doxygen: corrections/updatesCampbell Barton
Also add depsgraph & physics
2015-02-27Fix T43834: Text object looses one char after another by entering/leaving ↵Bastien Montagne
edit mode. Own mistake in refactoring of `BLI_strncpy_wchar_as_utf8()`, if given size was exactly the one needed, we'd lost last char (off-by-one error). Many thanks to plasmasolutions (Thomas Beck) who found the issue and did all the investigation work here!
2015-02-26Fix potential buffer overflow in `BLI_strncpy_wchar_as_utf8()`.Bastien Montagne
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-28BLI_string_utf8: add BLI_strncpy_utf8_rlenCampbell 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-04-26Code cleanup: use 'const' for arrays (blenlib)Campbell Barton
2014-03-25Code cleanup: function callsCampbell Barton
2014-03-15Code cleanup: use r_ prefix for return argsCampbell Barton
2014-01-12Style Cleanup: whitespaceCampbell Barton
2014-01-08Fix for inorrect use of BLI_utf8_invalid_strip, add assert to prevent it ↵Campbell Barton
happening again.
2013-07-23replace use of strcat() where the string offset is known.Campbell Barton
also correct bad logic with converting a textblock to 3d-text, bytes-vs-number of chars wasn't handled right.
2013-07-16revert part of own commit r58254, utf8 isnt stepping by 1 always so use ↵Campbell Barton
less-than comparison.
2013-07-15correct placement of debug memset() for DEBUG_STRSIZECampbell Barton
2013-07-15fix for error in string copyCampbell Barton
- BLI_strncpy_wchar_from_utf8 wasn't NULL terminating the destination string, caused uninitialized memory use in BPY_python_start(). - BLI_strncpy_wchar_as_utf8 could write one byte past the buffer bounds.
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-07-09fix [#36066] crash when Tab out text objectCampbell Barton
the way Curve.len is used at the moment is really stupid, calculate string size on save for now, but should really store the length in bytes and total number of characters.
2013-05-12quiet sign conversion warnings and reduce sign conversion for BLI_string, ↵Campbell Barton
and BLF.
2013-04-27BLI_strlen_utf8 was doing size_t / int conversion unnecessarily.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-12Patch [#34373] Use i18n monospace font in Text editor and Python consoleIrie Shinsuke
This patch allows Blender to display i18n monospace font in the text editor and the Python interactive console. Wide characters that occupy multiple columns such as CJK characters can be displayed correctly. Furthermore, wrapping, selection, suggestion, cursor drawing, and syntax highlighting should work. Also fixes a bug [#34543]: In Text Editor false color in comment on cyrillic To estimate how many columns each character occupies, this patch uses wcwidth.c written by Markus Kuhn and distributed under MIT-style license: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c wcwidth.c is stored in extern/wcwidth and used as a static library. This patch adds new API to blenfont, blenlib and blenkernel: BLF_get_unifont_mono() BLF_free_unifont_mono() BLF_draw_mono() BLI_wcwidth() BLI_wcswidth() BLI_str_utf8_char_width() BLI_str_utf8_char_width_safe() txt_utf8_offset_to_column() txt_utf8_column_to_offset()
2013-02-19set unicode conversion errors as UNLIKELYCampbell Barton
2013-02-19step over unicode characters with autocomplete (correctly this time).Campbell Barton
2013-02-15style cleanupCampbell Barton
2012-11-26code cleanup: doxy comment corrections and correct own typo animation player ↵Campbell Barton
docs.
2012-11-23Patch [#33196] Warning Fixes 11-16-2012Jason Wilkins
* MEM_CacheLimitier - Size type to int conversion, should be safe for now (doing my best Bill Gates 640k impression) * OpenNL CMakeLists.txt - MSVC and GCC have slightly different ways to remove definitions (DEBUG) without the compiler complaining * BLI_math inlines - The include guard name and inline option macro name should be different. Suppressed warning about not exporting any symbols from inline math library * BLI string / utf8 - Fixed some inconsistencies between declarations and definitions * nodes - node_composite_util is apparently not used unless you enable the legacy compositor, so it should not be compiled in that case. Leaving out changes to BLI_fileops for now, need to do more testing.
2012-11-09fix [#33121] crashing when srolling down in text editor !Campbell Barton
2012-11-03style cleanup: tabs & whitespaceCampbell Barton
2012-10-31add assert if zero is passed to string copy functions, would copy into first ↵Campbell Barton
byte anyway.
2012-10-31(no commit message)Campbell Barton
2012-10-27change BLI_strlen_range_utf8 to the more conventional BLI_strnlen_utf8Campbell Barton
2012-10-27style cleanupCampbell Barton
2012-10-26* New string property subtype: PASSWORDJiri Hnidek
When this new subtypes is used, then string of property is hidden using asterisks, e.g.: mysecretpassword -> **************** This code was reviewed and modified by Brecht. Thanks very much: - https://codereview.appspot.com/6713044/ This new subtype of string property is intended mostly for Add-on developers writing Add-on which communicates with some server (http, sql, ftp, verse, etc.). When this server requires user authentication and user has to type username and password, then current API didn't allow to type 'hidden' password, e.g. when you want to demonstrate this script, then everybody can see this security password. Some examples of Add-on which could use this new subtype: - On-line database of textures - Integration of render farm - Integration of Verse Security Notes: - You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V), but you can do this in other GUI toolkits too (this behavior it is widely used). - Text of string property is stored in plain text, but it is widely used in other GUI toolkits (Qt, Gtk, etc.). Simple examples: - https://dl.dropbox.com/u/369894/draw_op_passwd.py - https://dl.dropbox.com/u/369894/blender-password.png
2012-10-23style cleanup: also rename bmesh_decimate.c --> bmesh_decimate_collapse.cCampbell Barton
2012-10-22style cleanupCampbell Barton
2012-09-30style cleanupCampbell Barton
2012-08-12style cleanupCampbell Barton
2012-08-04style cleanupCampbell Barton
2012-06-17style cleanup:Campbell Barton
also fix for building ghost test and fix double free in one of the tests
2012-06-05style cleanupCampbell Barton
2012-05-28style cleanup: defines with bracesCampbell Barton